In this recipe, we will use Amazon EKS. Let's perform the following steps to get started:
- Create a new AWS IAM user specifically for CircleCI and take note of your new user's access key ID and secret access key.
- Create a repository named eks_orb_demo_app on the AWS Elastic Container Registry ECR. Take note of your ECR URL. It should look similar to 1234567890.dkr.ecr.us-east-2.amazonaws.com.
- Make sure you are signed in to Circle CI. Click on the Add Projects button, search for the demo-aws keyword, and click on the Set Up Project button next to it:
- Click on build. The build will fail since it is missing the environment variables to access your AWS account.
- Click on Project Settings. Go to the Environmental Variables page under Build Settings. Create the following four variables by clicking the Add Variable button:
AWS_DEFAULT_REGION = us-east-2
AWS_ACCESS_KEY_ID = [Enter your Access key ID here]
AWS_SECRET_ACCESS_KEY = [Enter your Secret Access Key here]
AWS_ECR_URL = [Enter your ECR URL here]
The output of this can be seen in the following screenshot:
- Setting environmental variables will allow your pipeline to access AWS resources. After the cloud variables have been defined, click on the Build button to start the build.
- The build may fail if your AWS user does not have the required permissions; otherwise, this should be completed successfully in 35-40 mins.