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
}
-
Notifications
You must be signed in to change notification settings - Fork 0
stacklet/terraform-aws-policy-attachment
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A generic utility for creating policy attachments with the resource injected directly
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published