Skip to content

Commit

Permalink
pipeline: allow to override the aws access key name
Browse files Browse the repository at this point in the history
  • Loading branch information
talset committed Apr 27, 2018
1 parent 4744dee commit 0154bc1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
20 changes: 10 additions & 10 deletions pipeline/external-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,19 +90,19 @@ resources:
bucket: ((terraform_storage_bucket_name))
bucket_path: ((terraform_storage_bucket_path))
region_name: ((aws_default_region))
access_key_id: ((aws_admin.access_key))
secret_access_key: ((aws_admin.secret_key))
access_key_id: ((aws_access_key))
secret_access_key: ((aws_secret_key))
vars:
worker_keys_path: ((worker_keys_path))
access_key: ((aws_admin.access_key))
secret_key: ((aws_admin.secret_key))
access_key: ((aws_access_key))
secret_key: ((aws_secret_key))
env: ((env))
customer: ((customer))
project: ((project))
env:
AWS_ACCESS_KEY_ID: ((aws_admin.access_key))
AWS_ACCESS_KEY_ID: ((aws_access_key))
AWS_DEFAULT_REGION: ((aws_default_region))
AWS_SECRET_ACCESS_KEY: ((aws_admin.secret_key))
AWS_SECRET_ACCESS_KEY: ((aws_secret_key))

# The Terraform stack (will be merged with the config)
- name: ((project))-stack-terraform
Expand Down Expand Up @@ -150,8 +150,8 @@ resources:
- name: ((project))-worker-build-ami
type: packer
source:
aws_access_key_id: ((aws_admin.access_key))
aws_secret_access_key: ((aws_admin.secret_key))
aws_access_key_id: ((aws_access_key))
aws_secret_access_key: ((aws_secret_key))
region: ((aws_default_region))


Expand Down Expand Up @@ -352,8 +352,8 @@ jobs:
amicleaner -f --mapping-key tags --mapping-values ${AWS_TAGS} --keep-previous ${KEEP} --full-report
params:
AWS_DEFAULT_REGION: ((aws_default_region))
AWS_ACCESS_KEY_ID: ((aws_admin.access_key))
AWS_SECRET_ACCESS_KEY: ((aws_admin.secret_key))
AWS_ACCESS_KEY_ID: ((aws_access_key))
AWS_SECRET_ACCESS_KEY: ((aws_secret_key))
AWS_TAGS: cycloid.io project role env
KEEP: 1
inputs:
Expand Down
7 changes: 5 additions & 2 deletions pipeline/variables.sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ env: ($ environment $)
customer: ($ organization_canonical $)
project: ($ project $)

# Amazon access to use to run terraform. Usually admin account to be able to create Amazon services.
aws_access_key: ((aws.access_key))
aws_secret_key: ((aws.secret_key))
aws_default_region: eu-west-1

terraform_storage_bucket_name: ($ project $)-terraform-remote-state
terraform_storage_bucket_path: ($ project $)/($ environment $)

scheduler_api_address: https://myscheduler.com

aws_default_region: eu-west-1

external-worker_config_git_repository: ssh://APKAJ5QY5LYZNMX5
external-worker_config_git_branch: config
external-worker_config_git_key: ((git_codecommit_readonly.ssh_key))
Expand Down

0 comments on commit 0154bc1

Please sign in to comment.