Skip to content

A generic utility for creating policy attachments with the resource injected directly

Notifications You must be signed in to change notification settings

stacklet/terraform-aws-policy-attachment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-policy-attachment

Example

module "secretmanager_policy" {
  source = "github.com/stacklet/terraform-aws-policy-attachment"

  resource_arn = aws_secretsmanager_secret.example.arn
  policy = <<POLICY
  {
      "Version": "2012-10-17",
      "Statement": [
          {
             "Sid":"GlobalSecretsManagerPolicy",
             "Effect":"Allow",
             "Principal":{
                "type": "AWS",
                "identifiers": [
                   "arn:aws:iam::123456789123:root"
                ]
             },
             "Action":[
                "secretsmanager:*"
             ]
          }
      ]
  }
  POLICY
}

About

A generic utility for creating policy attachments with the resource injected directly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages