{"action":"closed","issue":{"url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/4526","repository_url":"https://api.github.com/repos/OctopusDeploy/Issues","labels_url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/4526/labels{/name}","comments_url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/4526/comments","events_url":"https://api.github.com/repos/OctopusDeploy/Issues/issues/4526/events","html_url":"https://github.com/OctopusDeploy/Issues/issues/4526","id":319091003,"number":4526,"title":"Terraform project variables not in binding helper for inline template variables","user":{"login":"shaunmarx","id":6700195,"avatar_url":"https://avatars1.githubusercontent.com/u/6700195?v=4","gravatar_id":"","url":"https://api.github.com/users/shaunmarx","html_url":"https://github.com/shaunmarx","followers_url":"https://api.github.com/users/shaunmarx/followers","following_url":"https://api.github.com/users/shaunmarx/following{/other_user}","gists_url":"https://api.github.com/users/shaunmarx/gists{/gist_id}","starred_url":"https://api.github.com/users/shaunmarx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shaunmarx/subscriptions","organizations_url":"https://api.github.com/users/shaunmarx/orgs","repos_url":"https://api.github.com/users/shaunmarx/repos","events_url":"https://api.github.com/users/shaunmarx/events{/privacy}","received_events_url":"https://api.github.com/users/shaunmarx/received_events","type":"User","site_admin":false},"labels":[{"id":809531983,"url":"https://api.github.com/repos/OctopusDeploy/Issues/labels/area/cloud","name":"area/cloud","color":"006b75","default":false},{"id":918924223,"url":"https://api.github.com/repos/OctopusDeploy/Issues/labels/feature/terraform","name":"feature/terraform","color":"bcdbff","default":false},{"id":62440875,"url":"https://api.github.com/repos/OctopusDeploy/Issues/labels/kind/bug","name":"kind/bug","color":"eb6420","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-01T01:38:58Z","updated_at":"2018-05-03T06:09:52Z","closed_at":"2018-05-03T06:09:52Z","author_association":"NONE","body":"# Overview \r\nThe terraform apply and plan steps provide the ability to specify an inline template which can have it's own set of variables and we provide the capability to bind existing octopus variables to those within the template. The inputs for these variables are dynamically generated, however the binding helper for these generated fields do not provide the variables from the current project.\r\n\r\n# Steps to reproduce\r\n\r\n1. Add a Terraform apply/plan step to a new or existing project and under template source choose \"Source Code\". Specify a template such as the following which contains a variable:\r\n\r\n```\r\nprovider \"aws\" {\r\n    region = \"ap-southeast-1\"\r\n}\r\n\r\nvariable \"bucket\" {\r\n    description = \"The bucket to create\"\r\n}\r\n\r\nresource \"aws_s3_bucket\" \"bucket\" {\r\n    bucket = \"${bucket}\"\r\n}\r\n```\r\n2. Create a project variable such as `MyBucket` and give it a value\r\n3. Under the generated variable UI open the binding helper and search for the variable, in this case `MyBucket`\r\n\r\n**Result**\r\n![image](https://user-images.githubusercontent.com/6700195/39457858-1b7c8b1c-4d34-11e8-9688-ff584ca973a1.png)\r\n\r\n**Expected**\r\nThe project variable `MyBucket` should be in the list of available variables"}}
{"actor":{"display_login":"shaunmarx"}}