perfectsense / gyro

Gyro is a command-line tool for creating, updating, and maintaining cloud infrastructure. Gyro makes infrastructure-as-code possible.
https://gyro.dev
Apache License 2.0
134 stars 7 forks source link

google::address description field isn't actually being changed #359

Closed jortiz98 closed 3 years ago

jortiz98 commented 3 years ago

Describe the bug When creating a google::address resource, you can optionally add the description field to the resource. However, after creating the resource and looking it up via gcloud cli, it's description is an empty string

To Reproduce Create a google:address resource with a description

ex. env = qa, layer = qa

    google::address "elastic-ip"
        name: "test-ip"
        address-type: "EXTERNAL"
        description: 'External Static ip for $(layer) instance in the $(environment) environment'
        network-tier: "PREMIUM"
        region: $(base-region)
    end

Now run the below command to see the info for the resource: $ gcloud compute addresses describe test-ip

Expected behavior description: 'External Static ip for qa instance in the qa environment'

Actual bahavior description: ''

jortiz98 commented 3 years ago

This is in conflict with the state files that do set the description field to the expected behavior

jortiz98 commented 3 years ago

moved to gyro-google-provider repo