AWS IAC
Configuring AWS for Infrastructure as code access.
Getting access keys
To deploy and manage infrastructure on AWS, you’ll need to set up AWS credentials with programmatic access. This involves creating an IAM user with the necessary permissions and obtaining AWS Access Keys.
Log in to your AWS Console
Go to AWS Console and sign in with your account.
Go to IAM (Identity and Access Management)
Navigate to IAM from the AWS services menu or search for “IAM” in the search bar.
Navigate to “Users” in the left sidebar
In the IAM dashboard, click on “Users” from the left navigation menu.
Select or create a user
Either select an existing user or create a new one by clicking “Create user”.
Attach security policies for this user
To do that, go to:
- IAM → Policies
- Create a new policy
Use a dedicated IAM user with minimal required permissions for your application resources. This will depend on the infrastructure your app requires.
If you don’t know the exact resources your app will need, you can start with with a permissive option (Administrator), and later add more protections once you have your CI/CD going.
Configure access keys
Under the “Security credentials” tab:
For a new user: Click “Create access key” For an existing user: Click “Create access key” in the “Access keys” section
When you create the access key:
- The AWS_ACCESS_KEY_ID is the “Access key ID”
- The AWS_SECRET_ACCESS_KEY is the “Secret access key”
Security notes:
- Make sure to save these credentials immediately when they’re shown - the secret access key cannot be retrieved again after initial creation
- We recommend to use a password manager to store them securely.