gyro up test.gyro
⟳ Refreshed resources: 99
Looking for changes...
+ Create aws::vpc us-east-1-vpc
Are you sure you want to change resources? (y/N) y
+ Creating aws::vpc us-east-1-vpc OK
Gyro up again:
gyro up test.gyro
Error: Can't create aws::vpc us-east-1-vpc resource!
Caused by: Error: Can't resolve region!
In test.gyro on line 5 from column 24 to 34:
5: @uses-credentials: $('region')
6: 'cidr-block': '10.0.0.0/16'
Expected behavior
Gyro should be able to resolve the variable, or save the value of the variable in the state.
Describe the bug Gyro errors on state resolve when using a variable as the value to the @uses-credentials directive.
To Reproduce Create a simple VPC using a variable with the @uses-credentials directive:
Gyro up:
Gyro up again:
Expected behavior Gyro should be able to resolve the variable, or save the value of the variable in the state.