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 secrets_manager_secret_id without granting enable_bastion_terraform_permissions #159

Open
willswire opened this issue Oct 23, 2024 · 0 comments

Comments

@willswire
Copy link

"secretsmanager:GetSecretValue"

Currently, setting the secrets_manager_secret_id in the module will fail if enable_bastion_terraform_permissions is not true, and policy_content does not include something like:

  policy_content = jsonencode({
    "Version" : "2012-10-17",
    "Statement" : [
      {
        "Effect" : "Allow",
        "Action" : "secretsmanager:GetSecretValue",
        "Resource" : "arn:aws-us-gov:secretsmanager:*:*:secret:${secrets_manager_secret_id}-??????"
      }
    ]
  })

Perhaps the module should auto include that policy?

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