What permissions are required to use the atlassian/aws-elasticbeanstalk-deploy:1.5.0 pipe with an OIDC deployment? I want to ensure that I haven't given to many permissions to the OIDC role.
For the atlassian/aws-elasticbeanstalk-deploy:1.5.0
pipe with OIDC, you'll need these minimum IAM permissions:
Essential Permissions:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"elasticbeanstalk:CreateApplicationVersion",
"elasticbeanstalk:DescribeApplicationVersions",
"elasticbeanstalk:DescribeApplications",
"elasticbeanstalk:DescribeEnvironments",
"elasticbeanstalk:UpdateEnvironment",
"s3:GetObject",
"s3:PutObject",
"s3:DeleteObject"
],
"Resource": "*"
}
]
}
Additional permissions you might need:
elasticbeanstalk:DescribeEvents
- for deployment statuselasticbeanstalk:DescribeEnvironmentHealth
- for health checksBest Practice:
arn:aws:s3:::your-eb-bucket/*
OIDC Trust Policy: Make sure your OIDC role has the correct trust relationship with your Bitbucket repository.
The exact permissions can vary based on your specific EB configuration and deployment needs.
Need help with the complete IAM policy setup? Feel free to DM me!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.