-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improvements identified by doing this for a 2nd module (#10)
* change git resource to be a generic name so it can be reused * remove ci parameter used with test.sh (test cannot be run locally with remote state and secrets injected) rename name_prefixes to reduce chance of creating resources with existing names * bump terraform version used in examples and travis to 0.11.11
- Loading branch information
1 parent
59eb1d5
commit 813d438
Showing
11 changed files
with
39 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ jobs: | |
- name: test-default | ||
plan: | ||
- aggregate: | ||
- get: terraform-aws-vpc | ||
- get: this-module | ||
trigger: true | ||
- task: apply | ||
params: | ||
|
@@ -12,27 +12,27 @@ jobs: | |
AWS_SECRET_ACCESS_KEY: ((telia-divx-common-services-stage-secret-key)) | ||
AWS_SESSION_TOKEN: ((telia-divx-common-services-stage-session-token)) | ||
KMS_KEY_ID: ((telia-divx-common-services-stage-state-bucket-key)) | ||
file: terraform-aws-vpc/.ci/tasks/apply/task.yml | ||
input_mapping: {source: terraform-aws-vpc} | ||
file: this-module/.ci/tasks/apply/task.yml | ||
input_mapping: {source: this-module} | ||
- task: test | ||
params: | ||
directory: default | ||
AWS_ACCESS_KEY_ID: ((telia-divx-common-services-stage-access-key)) | ||
AWS_SECRET_ACCESS_KEY: ((telia-divx-common-services-stage-secret-key)) | ||
AWS_SESSION_TOKEN: ((telia-divx-common-services-stage-session-token)) | ||
file: terraform-aws-vpc/.ci/tasks/test/task.yml | ||
file: this-module/.ci/tasks/test/task.yml | ||
- task: destroy | ||
params: | ||
directory: default | ||
AWS_ACCESS_KEY_ID: ((telia-divx-common-services-stage-access-key)) | ||
AWS_SECRET_ACCESS_KEY: ((telia-divx-common-services-stage-secret-key)) | ||
AWS_SESSION_TOKEN: ((telia-divx-common-services-stage-session-token)) | ||
file: terraform-aws-vpc/.ci/tasks/destroy/task.yml | ||
file: this-module/.ci/tasks/destroy/task.yml | ||
|
||
- name: test-private-subnets-no-nat | ||
plan: | ||
- aggregate: | ||
- get: terraform-aws-vpc | ||
- get: this-module | ||
trigger: true | ||
passed: | ||
- test-default | ||
|
@@ -44,27 +44,27 @@ jobs: | |
AWS_SECRET_ACCESS_KEY: ((telia-divx-common-services-stage-secret-key)) | ||
AWS_SESSION_TOKEN: ((telia-divx-common-services-stage-session-token)) | ||
KMS_KEY_ID: ((telia-divx-common-services-stage-state-bucket-key)) | ||
file: terraform-aws-vpc/.ci/tasks/apply/task.yml | ||
input_mapping: {source: terraform-aws-vpc} | ||
file: this-module/.ci/tasks/apply/task.yml | ||
input_mapping: {source: this-module} | ||
- task: test | ||
params: | ||
directory: private-subnets-no-nat | ||
AWS_ACCESS_KEY_ID: ((telia-divx-common-services-stage-access-key)) | ||
AWS_SECRET_ACCESS_KEY: ((telia-divx-common-services-stage-secret-key)) | ||
AWS_SESSION_TOKEN: ((telia-divx-common-services-stage-session-token)) | ||
file: terraform-aws-vpc/.ci/tasks/test/task.yml | ||
file: this-module/.ci/tasks/test/task.yml | ||
- task: destroy | ||
params: | ||
directory: private-subnets-no-nat | ||
AWS_ACCESS_KEY_ID: ((telia-divx-common-services-stage-access-key)) | ||
AWS_SECRET_ACCESS_KEY: ((telia-divx-common-services-stage-secret-key)) | ||
AWS_SESSION_TOKEN: ((telia-divx-common-services-stage-session-token)) | ||
file: terraform-aws-vpc/.ci/tasks/destroy/task.yml | ||
file: this-module/.ci/tasks/destroy/task.yml | ||
|
||
- name: test-private-subnets | ||
plan: | ||
- aggregate: | ||
- get: terraform-aws-vpc | ||
- get: this-module | ||
trigger: true | ||
passed: | ||
- test-private-subnets-no-nat | ||
|
@@ -76,26 +76,26 @@ jobs: | |
AWS_SECRET_ACCESS_KEY: ((telia-divx-common-services-stage-secret-key)) | ||
AWS_SESSION_TOKEN: ((telia-divx-common-services-stage-session-token)) | ||
KMS_KEY_ID: ((telia-divx-common-services-stage-state-bucket-key)) | ||
file: terraform-aws-vpc/.ci/tasks/apply/task.yml | ||
input_mapping: {source: terraform-aws-vpc} | ||
file: this-module/.ci/tasks/apply/task.yml | ||
input_mapping: {source: this-module} | ||
- task: test | ||
params: | ||
directory: private-subnets | ||
AWS_ACCESS_KEY_ID: ((telia-divx-common-services-stage-access-key)) | ||
AWS_SECRET_ACCESS_KEY: ((telia-divx-common-services-stage-secret-key)) | ||
AWS_SESSION_TOKEN: ((telia-divx-common-services-stage-session-token)) | ||
file: terraform-aws-vpc/.ci/tasks/test/task.yml | ||
file: this-module/.ci/tasks/test/task.yml | ||
- task: destroy | ||
params: | ||
directory: private-subnets | ||
AWS_ACCESS_KEY_ID: ((telia-divx-common-services-stage-access-key)) | ||
AWS_SECRET_ACCESS_KEY: ((telia-divx-common-services-stage-secret-key)) | ||
AWS_SESSION_TOKEN: ((telia-divx-common-services-stage-session-token)) | ||
file: terraform-aws-vpc/.ci/tasks/destroy/task.yml | ||
file: this-module/.ci/tasks/destroy/task.yml | ||
|
||
|
||
resources: | ||
- name: terraform-aws-vpc | ||
- name: this-module | ||
type: git | ||
source: | ||
uri: [email protected]:telia-oss/terraform-aws-vpc.git | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
export DIR="${PWD}" | ||
${DIR}/secret-source/examples/${directory}/test.sh ci | ||
${DIR}/secret-source/examples/${directory}/test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters