Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update IAM Policy ARNs to Use aws_partition Variable #24

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

unitmatrix
Copy link
Contributor

@unitmatrix unitmatrix commented Dec 12, 2024

Title:
Update IAM Policy ARNs to Use aws_partition Variable

Description:
This pull request updates the IAM policy ARNs in the Terraform configuration to use the aws_partition variable. This change ensures that the ARNs are dynamically generated based on the specified AWS partition, enhancing compatibility across different AWS environments such as AWS GovCloud and AWS China.

Changes:

  • Added a new variable aws_partition in variables.tf with a default value of aws.
  • Updated ARNs in the IAM policy document to use ${var.aws_partition} instead of hardcoding aws.

These updates improve the flexibility and portability of the Terraform configuration, making it more adaptable to various AWS partitions.

Closes #17
Supersedes #18

@unitmatrix unitmatrix force-pushed the use-aws-partition-variable branch from aac418d to 580a71b Compare December 12, 2024 10:07
@unitmatrix unitmatrix changed the title feat: Add AWS partition discovery in IAM policy ARNs feat: Update IAM Policy ARNs to Use aws_partition Variable Dec 12, 2024
feat(iam): replace static AWS partition with variable for resource ARNs

feat(docs): add aws_partition input variable to README
@unitmatrix unitmatrix force-pushed the use-aws-partition-variable branch from 580a71b to 8151703 Compare December 12, 2024 13:21
@mawa-jnd mawa-jnd mentioned this pull request Dec 13, 2024
7 tasks
@jaygridley jaygridley merged commit 32f77ea into lablabs:main Dec 13, 2024
@jaygridley jaygridley added this to the v2.0.0 milestone Dec 13, 2024
@unitmatrix unitmatrix deleted the use-aws-partition-variable branch December 13, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: add AWS partitions in ARNs
2 participants