Skip to content

feat(): Avoid IAM service role name conflicts when used with terraform-aws-elastic-beanstalk-environment#60

Merged
aknysh merged 1 commit intocloudposse:mainfrom
cilasbeltrame:feat/define-role-lifecycle
Aug 8, 2025
Merged

feat(): Avoid IAM service role name conflicts when used with terraform-aws-elastic-beanstalk-environment#60
aknysh merged 1 commit intocloudposse:mainfrom
cilasbeltrame:feat/define-role-lifecycle

Conversation

@cilasbeltrame
Copy link
Contributor

what

When this module is used together with cloudposse/terraform-aws-elastic-beanstalk-environment, the environment module already creates an Elastic Beanstalk service role (see main.tf#L34).
This PR updates our module to use a dedicated IAM role for the lifecycle policy, preventing a name collision with the existing service role.

why

  • It creates a dedicated iam role for lifecycle policy.
  • Prevents conflicts with the service role created by the environment module.

references

Cloud Posse environment module creating the EB service role: main.tf#L34

@cilasbeltrame cilasbeltrame requested review from a team as code owners August 8, 2025 15:24
@mergify mergify bot added the triage Needs triage label Aug 8, 2025
@aknysh aknysh added the patch A minor, backward compatible change label Aug 8, 2025
@aknysh
Copy link
Member

aknysh commented Aug 8, 2025

/terratest

@mergify mergify bot removed the triage Needs triage label Aug 8, 2025
@aknysh
Copy link
Member

aknysh commented Aug 8, 2025

thanks @cilasbeltrame

@aknysh aknysh merged commit e2707b1 into cloudposse:main Aug 8, 2025
37 of 43 checks passed
@github-actions
Copy link

github-actions bot commented Aug 8, 2025

These changes were released in v0.12.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch A minor, backward compatible change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants