This adds the ability to support the creation of multiple roles to this
module. Due to the fact that you can only have one OIDC provider per
URL, this module fails with a 409 error, like the below:
Error: error creating IAM OIDC Provider: EntityAlreadyExists: Provider
with url https://token.actions.githubusercontent.com already exists.
This feature is desired in the potential scenario where one wants to
create separate plan and apply roles in the same account.
To address this, we add an input variable to control whether we create
a aws_iam_openid_connect_provider resource or reference an existing
one using a data source. This data source was added in the AWS provider
version 4.0, so this also includes changing the provider requirements
to that version.
Finally, this changes the README to include generated docs from
terraform-docs as that seemed like the easiest method to update
them. I hope this is acceptable.
This adds the ability to support the creation of multiple roles to this module. Due to the fact that you can only have one OIDC provider per URL, this module fails with a 409 error, like the below:
This feature is desired in the potential scenario where one wants to create separate plan and apply roles in the same account.
To address this, we add an input variable to control whether we create a
aws_iam_openid_connect_provider
resource or reference an existing one using a data source. This data source was added in the AWS provider version4.0
, so this also includes changing the provider requirements to that version.Finally, this changes the README to include generated docs from
terraform-docs
as that seemed like the easiest method to update them. I hope this is acceptable.