Create a Service with an empty list of tags, terraform apply
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# opslevel_service.example will be created
+ resource "opslevel_service" "example" {
+ id = (known after apply)
+ name = "frosting-patrol1"
+ tags = []
}
Plan: 1 to add, 0 to change, 0 to destroy.
opslevel_service.example: Creating...
opslevel_service.example: Creation complete after 0s [id=Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Update this Terraform config, populate tags and terraform apply
Update Service with populated list of tags, terraform apply
opslevel_service.example: Refreshing state... [id=Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# opslevel_service.example will be updated in-place
~ resource "opslevel_service" "example" {
id = "Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk"
name = "frosting-patrol1"
~ tags = [
+ "a:b",
+ "cheese:crackers",
+ "one:two",
]
}
Plan: 0 to add, 1 to change, 0 to destroy.
opslevel_service.example: Modifying... [id=Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk]
opslevel_service.example: Modifications complete after 2s [id=Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk]
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Update this Terraform config, tags set to empty and terraform apply
opslevel_service.example: Refreshing state... [id=Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# opslevel_service.example will be updated in-place
~ resource "opslevel_service" "example" {
id = "Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk"
name = "frosting-patrol1"
~ tags = [
- "a:b",
- "cheese:crackers",
- "one:two",
]
}
Plan: 0 to add, 1 to change, 0 to destroy.
opslevel_service.example: Modifying... [id=Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk]
opslevel_service.example: Modifications complete after 3s [id=Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk]
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Update this Terraform config, tags set to null (same as omitted) and terraform apply
Update this Terraform config, tags set to null and terraform apply
opslevel_service.example: Refreshing state... [id=Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# opslevel_service.example will be updated in-place
~ resource "opslevel_service" "example" {
id = "Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk"
name = "frosting-patrol1"
- tags = [] -> null
}
Plan: 0 to add, 1 to change, 0 to destroy.
opslevel_service.example: Modifying... [id=Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk]
opslevel_service.example: Modifications complete after 1s [id=Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk]
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Destroy created service, terraform destroy
opslevel_service.example: Refreshing state... [id=Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk]
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
- destroy
Terraform will perform the following actions:
# opslevel_service.example will be destroyed
- resource "opslevel_service" "example" {
- id = "Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk" -> null
- name = "frosting-patrol1" -> null
}
Plan: 0 to add, 0 to change, 1 to destroy.
opslevel_service.example: Destroying... [id=Z2lkOi8vb3BzbGV2ZWwvU2VydmljZS8xMjQwOTk]
opslevel_service.example: Destruction complete after 6s
Destroy complete! Resources: 1 destroyed.
Issues
opslevel_serivce tags update errors with the new provider upgrade
Changelog
Convert type of service tags from
list
toset
.changie
entryTophatting
With this Terraform config
Create a Service with an empty list of tags,
terraform apply
Update this Terraform config, populate
tags
andterraform apply
Update Service with populated list of tags,
terraform apply
Update this Terraform config,
tags
set to empty andterraform apply
Update Service with tags empty,
terraform apply
Update this Terraform config,
tags
set to null (same as omitted) andterraform apply
Update this Terraform config,
tags
set to null andterraform apply
Destroy created service,
terraform destroy