Skip to content

Commit 324a819

Browse files
Khuzaima-ShakeelKhuzaima-Shakeel
authored andcommitted
updated tags
1 parent 7577fea commit 324a819

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

ibm_catalog.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@
289289
"key": "default_routing_table_name"
290290
},
291291
{
292-
"key": "vpc_instance_resource_tags",
292+
"key": "resource_tags",
293293
"custom_config": {
294294
"grouping": "deployment",
295295
"original_grouping": "deployment",
@@ -299,7 +299,7 @@
299299
}
300300
},
301301
{
302-
"key": "vpc_instance_access_tags",
302+
"key": "access_tags",
303303
"custom_config": {
304304
"grouping": "deployment",
305305
"original_grouping": "deployment",

solutions/fully-configurable/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ This solution supports provisioning and configuring the following infrastructure
6363

6464
| Name | Description | Type | Default | Required |
6565
|------|-------------|------|---------|:--------:|
66+
| <a name="input_access_tags"></a> [access\_tags](#input\_access\_tags) | The list of access tags to add to the VPC instance. | `list(string)` | `[]` | no |
6667
| <a name="input_add_bucket_name_suffix"></a> [add\_bucket\_name\_suffix](#input\_add\_bucket\_name\_suffix) | Add a randomly generated suffix that is 4 characters in length, to the name of the newly provisioned Cloud Object Storage bucket. Do not use this suffix if you are passing the existing Cloud Object Storage bucket. To manage the name of the Cloud Object Storage bucket manually, use the `flow_logs_cos_bucket_name` variables. | `bool` | `true` | no |
6768
| <a name="input_address_prefixes"></a> [address\_prefixes](#input\_address\_prefixes) | The IP range that will be defined for the VPC for a certain location. Use only with manual address prefixes. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc/blob/main/solutions/fully-configurable/DA-types.md#address-prefixes-). | <pre>object({<br/> zone-1 = optional(list(string))<br/> zone-2 = optional(list(string))<br/> zone-3 = optional(list(string))<br/> })</pre> | <pre>{<br/> "zone-1": null,<br/> "zone-2": null,<br/> "zone-3": null<br/>}</pre> | no |
6869
| <a name="input_clean_default_security_group_acl"></a> [clean\_default\_security\_group\_acl](#input\_clean\_default\_security\_group\_acl) | Remove all rules from the default VPC security group and VPC ACL (less permissive) | `bool` | `true` | no |
@@ -96,13 +97,12 @@ This solution supports provisioning and configuring the following infrastructure
9697
| <a name="input_prefix"></a> [prefix](#input\_prefix) | Prefix to add to all the resources created by this solution. To not use any prefix value, you can set this value to `null` or an empty string. | `string` | n/a | yes |
9798
| <a name="input_provider_visibility"></a> [provider\_visibility](#input\_provider\_visibility) | Set the visibility value for the IBM terraform provider. Supported values are `public`, `private`, `public-and-private`. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/guides/custom-service-endpoints). | `string` | `"private"` | no |
9899
| <a name="input_region"></a> [region](#input\_region) | Region to deploy the VPC. | `string` | `"us-south"` | no |
100+
| <a name="input_resource_tags"></a> [resource\_tags](#input\_resource\_tags) | The list of tags to add to the VPC instance. | `list(string)` | `[]` | no |
99101
| <a name="input_routes"></a> [routes](#input\_routes) | Allows you to specify the next hop for packets based on their destination address. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc/blob/main/solutions/fully-configurable/DA-types.md#routes-). | <pre>list(<br/> object({<br/> name = string<br/> route_direct_link_ingress = optional(bool)<br/> route_transit_gateway_ingress = optional(bool)<br/> route_vpc_zone_ingress = optional(bool)<br/> routes = optional(<br/> list(<br/> object({<br/> action = optional(string)<br/> zone = number<br/> destination = string<br/> next_hop = string<br/> })<br/> ))<br/> })<br/> )</pre> | `[]` | no |
100102
| <a name="input_security_group_rules"></a> [security\_group\_rules](#input\_security\_group\_rules) | A list of security group rules to be added to the default vpc security group (default empty). [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc/blob/main/solutions/fully-configurable/DA-types.md#security-group-rules-). | <pre>list(<br/> object({<br/> name = string<br/> direction = string<br/> remote = optional(string)<br/> tcp = optional(<br/> object({<br/> port_max = optional(number)<br/> port_min = optional(number)<br/> })<br/> )<br/> udp = optional(<br/> object({<br/> port_max = optional(number)<br/> port_min = optional(number)<br/> })<br/> )<br/> icmp = optional(<br/> object({<br/> type = optional(number)<br/> code = optional(number)<br/> })<br/> )<br/> })<br/> )</pre> | `[]` | no |
101103
| <a name="input_skip_cos_kms_iam_auth_policy"></a> [skip\_cos\_kms\_iam\_auth\_policy](#input\_skip\_cos\_kms\_iam\_auth\_policy) | To skip creating an IAM authorization policy that allows Cloud Object Storage(COS) to access KMS key. | `bool` | `false` | no |
102104
| <a name="input_skip_vpc_cos_iam_auth_policy"></a> [skip\_vpc\_cos\_iam\_auth\_policy](#input\_skip\_vpc\_cos\_iam\_auth\_policy) | To skip creating an IAM authorization policy that allows the VPC to access the Cloud Object Storage, set this variable to `true`. Required only if `enable_vpc_flow_logs` is set to true. | `bool` | `false` | no |
103105
| <a name="input_subnets"></a> [subnets](#input\_subnets) | List of subnets for the vpc. For each item in each array, a subnet will be created. Items can be either CIDR blocks or total ipv4 addressess. Public gateways will be enabled only in zones where a gateway has been created. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc/blob/main/solutions/fully-configurable/DA-types.md#subnets-). | <pre>object({<br/> zone-1 = list(object({<br/> name = string<br/> cidr = string<br/> public_gateway = optional(bool)<br/> acl_name = string<br/> no_addr_prefix = optional(bool, false) # do not automatically add address prefix for subnet, overrides other conditions if set to true<br/> subnet_tags = optional(list(string), [])<br/> }))<br/> zone-2 = optional(list(object({<br/> name = string<br/> cidr = string<br/> public_gateway = optional(bool)<br/> acl_name = string<br/> no_addr_prefix = optional(bool, false) # do not automatically add address prefix for subnet, overrides other conditions if set to true<br/> subnet_tags = optional(list(string), [])<br/> })))<br/> zone-3 = optional(list(object({<br/> name = string<br/> cidr = string<br/> public_gateway = optional(bool)<br/> acl_name = string<br/> no_addr_prefix = optional(bool, false) # do not automatically add address prefix for subnet, overrides other conditions if set to true<br/> subnet_tags = optional(list(string), [])<br/> })))<br/> })</pre> | <pre>{<br/> "zone-1": [<br/> {<br/> "acl_name": "vpc-acl",<br/> "cidr": "10.10.10.0/24",<br/> "name": "subnet-a",<br/> "no_addr_prefix": false,<br/> "public_gateway": true<br/> }<br/> ]<br/>}</pre> | no |
104-
| <a name="input_vpc_instance_access_tags"></a> [vpc\_instance\_access\_tags](#input\_vpc\_instance\_access\_tags) | The list of access tags to add to the VPC instance. | `list(string)` | `[]` | no |
105-
| <a name="input_vpc_instance_resource_tags"></a> [vpc\_instance\_resource\_tags](#input\_vpc\_instance\_resource\_tags) | The list of tags to add to the VPC instance. | `list(string)` | `[]` | no |
106106
| <a name="input_vpc_name"></a> [vpc\_name](#input\_vpc\_name) | Name of the VPC. If a prefix input variable is specified, the prefix is added to the name in the `<prefix>-<name>` format. | `string` | `"vpc"` | no |
107107
| <a name="input_vpe_gateway_cloud_service_by_crn"></a> [vpe\_gateway\_cloud\_service\_by\_crn](#input\_vpe\_gateway\_cloud\_service\_by\_crn) | The list of cloud service CRNs used to create endpoint gateways. Use this list to identify services that are not supported by service name in the `cloud_services` variable. For a list of supported services, see [VPE-enabled services](https://cloud.ibm.com/docs/vpc?topic=vpc-vpe-supported-services). If `service_name` is not specified, the CRN is used to find the name. If `vpe_name` is not specified in the list, VPE names are created in the format `<prefix>-<vpc_name>-<service_name>`. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc/blob/main/solutions/fully-configurable/DA-types.md#vpe-gateway-cloud-service-by-crn-). | <pre>set(<br/> object({<br/> crn = string<br/> vpe_name = optional(string) # Full control on the VPE name. If not specified, the VPE name will be computed based on prefix, vpc name and service name.<br/> service_name = optional(string) # Name of the service used to compute the name of the VPE. If not specified, the service name will be obtained from the crn.<br/> allow_dns_resolution_binding = optional(bool, true)<br/> })<br/> )</pre> | `[]` | no |
108108
| <a name="input_vpe_gateway_cloud_services"></a> [vpe\_gateway\_cloud\_services](#input\_vpe\_gateway\_cloud\_services) | The list of cloud services used to create endpoint gateways. If `vpe_name` is not specified in the list, VPE names are created in the format `<prefix>-<vpc_name>-<service_name>`. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-landing-zone-vpc/blob/main/solutions/fully-configurable/DA-types.md#vpe-gateway-cloud-services-). | <pre>set(object({<br/> service_name = string<br/> vpe_name = optional(string), # Full control on the VPE name. If not specified, the VPE name will be computed based on prefix, vpc name and service name.<br/> allow_dns_resolution_binding = optional(bool, false)<br/> }))</pre> | `[]` | no |

solutions/fully-configurable/catalogValidationValues.json.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"ibmcloud_api_key": $VALIDATION_APIKEY,
33
"region": "us-south",
4-
"vpc_instance_resource_tags": $TAGS,
4+
"resource_tags": $TAGS,
55
"existing_resource_group_name": "geretain-test-resources",
66
"prefix": $PREFIX,
77
"enable_vpc_flow_logs": true,

solutions/fully-configurable/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ locals {
3737

3838
# configuration for the flow logs bucket
3939
bucket_config = [{
40-
access_tags = var.vpc_instance_access_tags
40+
access_tags = var.access_tags
4141
bucket_name = local.bucket_name
4242
add_bucket_name_suffix = var.add_bucket_name_suffix
4343
kms_encryption_enabled = var.kms_encryption_enabled_bucket
@@ -205,8 +205,8 @@ module "vpc" {
205205
create_vpc = true
206206
name = var.vpc_name
207207
prefix = local.prefix != "" ? trimspace(var.prefix) : null
208-
tags = var.vpc_instance_resource_tags
209-
access_tags = var.vpc_instance_access_tags
208+
tags = var.resource_tags
209+
access_tags = var.access_tags
210210
subnets = var.subnets
211211
default_network_acl_name = var.default_network_acl_name
212212
default_security_group_name = var.default_security_group_name

solutions/fully-configurable/variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ variable "region" {
5353
type = string
5454
}
5555

56-
variable "vpc_instance_resource_tags" {
56+
variable "resource_tags" {
5757
type = list(string)
5858
description = "The list of tags to add to the VPC instance."
5959
default = []
6060
}
6161

62-
variable "vpc_instance_access_tags" {
62+
variable "access_tags" {
6363
type = list(string)
6464
description = "The list of access tags to add to the VPC instance."
6565
default = []

tests/pr_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ func TestFullyConfigurable(t *testing.T) {
239239
{Name: "ibmcloud_api_key", Value: options.RequiredEnvironmentVars["TF_VAR_ibmcloud_api_key"], DataType: "string", Secure: true},
240240
{Name: "existing_resource_group_name", Value: resourceGroup, DataType: "string"},
241241
{Name: "region", Value: options.Region, DataType: "string"},
242-
{Name: "vpc_instance_resource_tags", Value: options.Tags, DataType: "list(string)"},
243-
{Name: "vpc_instance_access_tags", Value: permanentResources["accessTags"], DataType: "list(string)"},
242+
{Name: "resource_tags", Value: options.Tags, DataType: "list(string)"},
243+
{Name: "access_tags", Value: permanentResources["accessTags"], DataType: "list(string)"},
244244
{Name: "prefix", Value: options.Prefix, DataType: "string"},
245245
}
246246

@@ -283,8 +283,8 @@ func TestRunUpgradeFullyConfigurable(t *testing.T) {
283283
{Name: "ibmcloud_api_key", Value: options.RequiredEnvironmentVars["TF_VAR_ibmcloud_api_key"], DataType: "string", Secure: true},
284284
{Name: "existing_resource_group_name", Value: resourceGroup, DataType: "string"},
285285
{Name: "region", Value: options.Region, DataType: "string"},
286-
{Name: "vpc_instance_resource_tags", Value: options.Tags, DataType: "list(string)"},
287-
{Name: "vpc_instance_access_tags", Value: permanentResources["accessTags"], DataType: "list(string)"},
286+
{Name: "resource_tags", Value: options.Tags, DataType: "list(string)"},
287+
{Name: "access_tags", Value: permanentResources["accessTags"], DataType: "list(string)"},
288288
{Name: "prefix", Value: options.Prefix, DataType: "string"},
289289
}
290290

0 commit comments

Comments
 (0)