1
0

feat: updated UserRole example

This commit is contained in:
xpk
2026-03-20 07:50:57 +08:00
parent 8ee5379e44
commit 61f28b424d
3 changed files with 3 additions and 19 deletions
-2
View File
@@ -30,10 +30,8 @@ No requirements.
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| DynamicAddressGroup | n/a | `any` | n/a | yes |
| application | n/a | `any` | n/a | yes |
| aws-region | n/a | `any` | n/a | yes |
| costcenter | n/a | `any` | n/a | yes |
| customer-name | n/a | `any` | n/a | yes |
| environment | n/a | `any` | n/a | yes |
| owner | n/a | `any` | n/a | yes |
+1
View File
@@ -39,6 +39,7 @@ module "iam-user2" {
module "IamReadOnlyRole" {
source = "../modules/security_identity_compliance/iam-role-v2"
role-name = "MyReadonlyRole"
trusted-entity = "ec2.amazonaws.com"
description = "IAM role with read only access. Data decryption is denied"
path = "/Management/"
-15
View File
@@ -4,18 +4,3 @@ variable "environment" {}
variable "project" {}
variable "application" {}
variable "owner" {}
variable "costcenter" {}
variable "DynamicAddressGroup" {}
locals {
default-tags = {
ServiceProvider = "RackspaceTechnology"
Environment = var.environment
Project = var.project
Application = var.application
TerraformMode = "managed"
Owner = var.owner
TerraformDir = join("/", reverse(slice(reverse(split("/", path.cwd)), 0, 2)))
}
resource-prefix = "${var.environment}-substr(${var.aws-region},0,2)-${var.customer-name}-${var.project}"
}