This repository has been archived by the owner on Feb 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* atlantis and cloudtrail added in new way
- Loading branch information
Showing
13 changed files
with
141 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: 2 | ||
|
||
projects: | ||
|
||
- name: "cloudtrail" | ||
workflow: "make" | ||
dir: "conf/cloudtrail" | ||
workspace: "default" | ||
terraform_version: "v0.11.10" | ||
autoplan: | ||
when_modified: | ||
- "Makefile*" | ||
- "*.tf" | ||
- "*.tfvars" | ||
- ".envrc" | ||
enabled: true | ||
apply_requirements: | ||
- "approved" | ||
|
||
workflows: | ||
make: | ||
plan: | ||
steps: | ||
- run: "make reset deps" | ||
- run: "set -o pipefail; make plan | tfmask | scenery --no-color" | ||
apply: | ||
steps: | ||
- run: "set -o pipefail; make apply | tfmask" |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: 0.2 | ||
phases: | ||
pre_build: | ||
commands: | ||
- echo Logging in to Amazon ECR... | ||
- aws --version | ||
- eval $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email) | ||
- REPOSITORY_URI=$AWS_ACCOUNT_ID.dkr.ecr.us-west-2.amazonaws.com/$IMAGE_REPO_NAME | ||
- IMAGE_TAG=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7) | ||
build: | ||
commands: | ||
- echo Build started on `date` | ||
- echo Building the Docker image... | ||
- REPO_URI=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/$IMAGE_REPO_NAME | ||
- docker pull $REPO_URI:latest || true | ||
- docker build --cache-from $REPO_URI:latest --tag $REPO_URI:latest --tag $REPO_URI:$IMAGE_TAG . | ||
post_build: | ||
commands: | ||
- echo Build completed on `date` | ||
- echo Pushing the Docker images... | ||
- REPO_URI=$AWS_ACCOUNT_ID.dkr.ecr.$AWS_REGION.amazonaws.com/$IMAGE_REPO_NAME | ||
- docker push $REPO_URI:latest | ||
- docker push $REPO_URI:$IMAGE_TAG | ||
- echo Writing image definitions file... | ||
- printf '[{"name":"%s","imageUri":"%s"}]' "$CONTAINER_NAME" "$REPO_URI:$IMAGE_TAG" | tee imagedefinitions.json | ||
artifacts: | ||
files: imagedefinitions.json |
Submodule atlantis
deleted from
6bea82
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Import the remote module | ||
export TF_CLI_INIT_FROM_MODULE="git::https://github.com/cloudposse/terraform-root-modules.git//aws/cloudtrail?ref=tags/0.35.1" | ||
export TF_CLI_PLAN_PARALLELISM=2 | ||
|
||
use terraform | ||
use atlantis | ||
use tfenv |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Fetch the remote terraform module | ||
deps: | ||
terraform init | ||
|
||
## Reset this project | ||
reset: | ||
rm -rf Makefile *.tf .terraform |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Import the remote module | ||
export TF_CLI_INIT_FROM_MODULE="git::https://github.com/cloudposse/terraform-root-modules.git//aws/ecs?ref=tags/0.53.2" | ||
export TF_CLI_PLAN_PARALLELISM=2 | ||
|
||
use terraform | ||
use atlantis | ||
use tfenv |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## Fetch the remote terraform module | ||
deps: | ||
terraform init | ||
|
||
## Reset this project | ||
reset: | ||
rm -rf Makefile *.tf .terraform | ||
|
||
## Coldstart setup | ||
coldstart: | ||
terraform apply -target module.dns | ||
terraform apply |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
atlantis_enabled = "true" | ||
|
||
atlantis_branch = "master" | ||
|
||
atlantis_repo_name = "root.cloudposse.co" | ||
|
||
atlantis_repo_owner = "cloudposse" | ||
|
||
atlantis_repo_whitelist = ["github.com/cloudposse/root.cloudposse.co"] | ||
|
||
atlantis_allow_repo_config = "true" | ||
|
||
atlantis_gh_user = "cloudpossebot" | ||
|
||
atlantis_gh_team_whitelist = "cloudposse:*,engineering:*" | ||
|
||
atlantis_wake_word = "atlantis" |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
dns_enabled = "true" | ||
|
||
dns_parent_zone_name = "root.cloudposse.co" |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
slack_channel = "#test" | ||
|
||
slack_username = "ecs" | ||
|
||
slack_webhook_url = "https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" |