feat: updated UserRole example
This commit is contained in:
+1
-3
@@ -30,10 +30,8 @@ No requirements.
|
|||||||
|
|
||||||
| Name | Description | Type | Default | Required |
|
| Name | Description | Type | Default | Required |
|
||||||
|------|-------------|------|---------|:--------:|
|
|------|-------------|------|---------|:--------:|
|
||||||
| DynamicAddressGroup | n/a | `any` | n/a | yes |
|
|
||||||
| application | n/a | `any` | n/a | yes |
|
| application | n/a | `any` | n/a | yes |
|
||||||
| aws-region | 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 |
|
| customer-name | n/a | `any` | n/a | yes |
|
||||||
| environment | n/a | `any` | n/a | yes |
|
| environment | n/a | `any` | n/a | yes |
|
||||||
| owner | n/a | `any` | n/a | yes |
|
| owner | n/a | `any` | n/a | yes |
|
||||||
@@ -50,4 +48,4 @@ No requirements.
|
|||||||
|
|
||||||
---
|
---
|
||||||
## Authorship
|
## Authorship
|
||||||
This module was developed by xpk.
|
This module was developed by xpk.
|
||||||
@@ -39,6 +39,7 @@ module "iam-user2" {
|
|||||||
|
|
||||||
module "IamReadOnlyRole" {
|
module "IamReadOnlyRole" {
|
||||||
source = "../modules/security_identity_compliance/iam-role-v2"
|
source = "../modules/security_identity_compliance/iam-role-v2"
|
||||||
|
role-name = "MyReadonlyRole"
|
||||||
trusted-entity = "ec2.amazonaws.com"
|
trusted-entity = "ec2.amazonaws.com"
|
||||||
description = "IAM role with read only access. Data decryption is denied"
|
description = "IAM role with read only access. Data decryption is denied"
|
||||||
path = "/Management/"
|
path = "/Management/"
|
||||||
|
|||||||
+1
-16
@@ -3,19 +3,4 @@ variable "customer-name" {}
|
|||||||
variable "environment" {}
|
variable "environment" {}
|
||||||
variable "project" {}
|
variable "project" {}
|
||||||
variable "application" {}
|
variable "application" {}
|
||||||
variable "owner" {}
|
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}"
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user