diff --git a/concourse/pipelines/create-deployer.yml b/concourse/pipelines/create-deployer.yml index 67bd9b7192..1b6734ef4a 100644 --- a/concourse/pipelines/create-deployer.yml +++ b/concourse/pipelines/create-deployer.yml @@ -66,6 +66,13 @@ resources: versioned_file: id_rsa region_name: {{aws_region}} + - name: git-ssh-public-key + type: s3-iam + source: + bucket: {{state_bucket}} + versioned_file: git_id_rsa.pub + region_name: {{aws_region}} + - name: concourse-cert type: s3-iam source: @@ -217,6 +224,7 @@ jobs: passed: [vpc] - get: concourse-terraform-state - get: concourse-cert + - get: git-ssh-public-key - task: vpc-terraform-outputs-to-sh config: @@ -270,6 +278,7 @@ jobs: - name: vpc-terraform-outputs - name: concourse-terraform-state - name: generate-concourse-cert + - name: git-ssh-public-key params: VAGRANT_IP: {{vagrant_ip}} TF_VAR_env: {{deploy_env}} @@ -283,6 +292,7 @@ jobs: - | cp generate-concourse-cert/concourse.crt generate-concourse-cert/concourse.key . . vpc-terraform-outputs/tfvars.sh + export TF_VAR_git_rsa_id_pub=$(