- NACL vs Default NACL:
A Network Access Control List (NACL) is a firewall that controls the traffic going to and from the subnets in your AWS Virtual Private Cloud (VPC). A default NACL is automatically created for each VPC and it allows all OUTBOUND traffic and denies all INBOUND traffic. You can create custom NACLs to allow or deny specific types of network traffic.
Default NACLs are applied to all subnets in the VPC unless you specify a different NACL for the subnet. Default NACLs cannot be deleted. You can modify the default NACL to allow or deny specific types of traffic. However, it is recommended to create custom NACLs for each subnet to have more control over the network traffic.
- NACL for Private subnets:
A private subnet is a subnet that is not directly accessible from the internet. It is used to host resources that do not require direct internet access. In a private subnet, you can create custom NACLs to control the traffic going to and from the subnet.
It is recommended to create a custom NACL for each private subnet and allow only the necessary traffic. For example, you can allow traffic only from the private subnet to the database server in the private subnet. You should not allow traffic from the private subnet to the internet.
- Building IAM policy for existing users with . admin privileges:
Identity and Access Management (IAM) is a web service that you can use to manage users and their permissions in AWS. You can use IAM to create custom policies that allow or deny specific actions for your AWS resources.
To build an IAM policy for existing users with . admin privileges, you can use the AWS Management Console, AWS CLI, or AWS API. You can create a policy that allows all actions for all resources. You can then attach this policy to the existing user.
- Enabling AWS config in all regions:
AWS Config is a service that you can use to track the configuration changes of your AWS resources. You can use AWS Config to get a detailed view of the configuration changes of your resources over time.
To enable AWS Config in all regions, you can use the AWS Management Console, AWS CLI, or AWS API. You can enable AWS Config in each region separately. You can then use AWS Config to track the configuration changes of your resources in all regions.
- Encrypting Cloudtrail logs:
CloudTrail is a service that you can use to track user activity and API calls made in your AWS account. You can use CloudTrail to get a detailed view of the API calls made by your users.
To encrypt Cloudtrail logs, you can use AWS Key Management Service (KMS). You can create a KMS key and use it to encrypt the Cloudtrail logs. You can then use the KMS key to decrypt the logs when needed.
It is recommended to encrypt the Cloudtrail logs to ensure that the logs are secure and cannot be modified or deleted without detection.
- S3 bucket access logging for cloudtrail bucket:
S3 bucket access logging is a feature that you can use to track the access to your S3 buckets. You can use S3 bucket access logging to get a detailed view of the access to your S3 buckets.
To enable S3 bucket access logging for the Cloudtrail bucket, you can use the AWS Management Console, AWS CLI, or AWS API. You can enable S3 bucket access logging for the Cloudtrail bucket to track the access to the Cloudtrail logs.
It is recommended to enable S3 bucket access logging for the Cloudtrail bucket to ensure that the access to the Cloudtrail logs is tracked and audited.