Editing Terraform resource: aws iam policy
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy | https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_policy | ||
− | |||
− | |||
− | |||
== Examples == | == Examples == | ||
Line 13: | Line 10: | ||
# Terraform's "jsonencode" function converts a | # Terraform's "jsonencode" function converts a | ||
# Terraform expression result to valid JSON syntax. | # Terraform expression result to valid JSON syntax. | ||
− | policy = | + | policy = jsonencode({ |
Version = "2012-10-17" | Version = "2012-10-17" | ||
Statement = [ | Statement = [ | ||
Line 26: | Line 23: | ||
}) | }) | ||
} | } | ||
+ | |||
=== Basic example === | === Basic example === | ||
Line 65: | Line 63: | ||
}) | }) | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Related == | == Related == | ||
* [[AWS policy]] | * [[AWS policy]] | ||
* <code>[[aws_iam_user]]</code> | * <code>[[aws_iam_user]]</code> | ||
− | * | + | * <code>[[aws_iam_policy_document]]</code> |
* [[kms:Decrypt]] | * [[kms:Decrypt]] | ||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
− | |||
* {{terraform aws iam resources}} | * {{terraform aws iam resources}} | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Advertising: