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

Support AWS Gov Cloud #58

Open
crutchfield opened this issue Apr 22, 2024 · 0 comments
Open

Support AWS Gov Cloud #58

crutchfield opened this issue Apr 22, 2024 · 0 comments

Comments

@crutchfield
Copy link

Describe the Feature

The ARN partition is hardcoded to AWS. Since it is hardcoded the module does not work in AWS Gov Cloud or other partitions. This is encountered when 1) creating log policy 2) SNS topic policy and 3) SNS KMS Key policy.

Expected Behavior

I expected the partition would be automatically derived for creating policies and the module would successfully deploy in an AWS Gov Cloud environment.

Use Case

This would be valuable for deploy to other partitions (e.g., aws-us-gov, aws-cn).

Describe Ideal Solution

Use aws_partition to automatically determine partition.

For example,

data "aws_partition" "current" {}

resources = [
      "arn:${data.aws_partition.current.partition}:s3:::my-bucket",
    ]

Alternatives Considered

Allow user to set a variable.

Additional Context

No response

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

No branches or pull requests

1 participant