Skip to content

Commit

Permalink
chore: update huaweicloud.tf to add lifecycle rules for automq/logs a…
Browse files Browse the repository at this point in the history
…nd automq/metering
  • Loading branch information
Gezi-lzq committed Sep 12, 2024
1 parent 7a9b544 commit abdc9bd
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion huaweicloud.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,24 @@ resource "huaweicloud_obs_bucket" "automq_byoc_ops_bucket" {
automqVendor = "automq"
automqEnvironmentID = var.automq_byoc_env_id
}

lifecycle_rule {
enabled = true
name = "automq-${md5("automq/logs")}"
prefix = "automq/logs"
expiration {
days = 7
}
}

lifecycle_rule {
enabled = true
name = "automq-${md5("automq/metering")}"
prefix = "automq/metering"
expiration {
days = 7
}
}
}

data "huaweicloud_availability_zones" "zones" {}
Expand Down Expand Up @@ -86,7 +104,7 @@ resource "huaweicloud_identity_agency" "automq_byoc_agency" {
description = "Agency for AutoMQ BYOC"
delegated_service_name = "op_svc_ecs"

all_resources_roles = ["ECS FullAccess", "OBS Administrator", "DNS FullAccess", "AutoScaling FullAccess", "IMS FullAccess", "VPC FullAccess"]
all_resources_roles = ["ECS FullAccess", "OBS Administrator", "DNS FullAccess", "AutoScaling FullAccess", "IMS FullAccess", "VPC Administrator"]
}

# DNS Zone
Expand Down

0 comments on commit abdc9bd

Please sign in to comment.