meredithcorposs / ape-dev-rt Goto Github PK
View Code? Open in Web Editor NEWRelease tool - applies terraform to create and update application infrastructure
License: Mozilla Public License 2.0
Release tool - applies terraform to create and update application infrastructure
License: Mozilla Public License 2.0
errors in terraform configs will cause terraform init to fail and nothing reported to stdout or to logs
There are many references in the docs to 404 repos
i.e. ape-dev-rt-apps and ape-dev-terraform
as well as missing examples
https://github.com/TimeIncOSS/ape-dev-rt/blob/master/docs/usage.md
Builds fail due to different path
terraform core cleans up plugin processes using go-plugin CleanupClients
RT should do the same
https://github.com/hashicorp/terraform/blob/master/main.go#L154
When running a taint command with rt 0.10.0.alpha
./ape-dev-rt taint-deployed-resource -env=test -app=pr-be-fe-devops -slot-id=blue -module=deployment ./deployment aws_ecs_task_definition.main
it gives an error
- output 'aws_region': unknown module referenced: deployment
on the following code:
output "aws_region" {
value = "${module.deployment.aws_region}"
}
This works with rt 0.9.3
If you try to add ape-dev-rt
to your GOPATH using go get
, it will error out due to erroneous import paths that still make reference to the previous repo TimeInc
rather than TimeIncOSS
.
This should also apply to the brew cask and contribution docs
/Volumes/UserSpace/Users/paulm/Documents/Development/Golang/bin/ape-dev-rt apply-infra --env test --app test-app-rt-dev
Authenticated as dev-xxxx (xxxx) @ xxx
Current IP Address: xxx.xxx.xxx.xxx
Note: Locking is not supported. Parallel releases of test-app-rt-dev may cause issues, check with your team.
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.aws_caller_identity.current: Refreshing state...
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
+ aws_cloudwatch_log_group.newrelic
id: <computed>
arn: <computed>
name: "sdadasdas"
retention_in_days: "30"
Plan: 1 to add, 0 to change, 0 to destroy.
------------------------------------------------------------------------
This plan was saved to: /Users/paulm/Documents/Development/Vagrant/Repos/test-infra/planfile
To perform exactly these actions, run the following command to apply:
terraform apply "/Users/paulm/Documents/Development/Vagrant/Repos/test-infra/planfile"
__ ___________________________________________________________________
/ \ / \
| | | It looks like you want to change infrastructure of |
@ @ | 'test-app-rt-dev' in XXXXX/test. |
|| || | |
|| || <--| |
|\_/| \___________________________________________________________________/
\___/
continue? y/[n]:^CAuthenticated as dev-pmacey (XXXX) @ XXXX
Current IP Address: 209.251.196.60
Note: Locking is not supported. Parallel releases of test-app-rt-dev may cause issues, check with your team.
2018-05-10T15:25:03.614+0100 [DEBUG] plugin: starting plugin: path=/Users/paulm/Documents/Development/Vagrant/Repos/test-infra/.terraform/plugins/darwin_amd64/terraform-provider-aws_v1.17.0_x4 args=[/Users/paulm/Documents/Development/Vagrant/Repos/test-infra/.terraform/plugins/darwin_amd64/terraform-provider-aws_v1.17.0_x4]
2018-05-10T15:25:03.632+0100 [DEBUG] plugin: waiting for RPC address: path=/Users/paulm/Documents/Development/Vagrant/Repos/test-infra/.terraform/plugins/darwin_amd64/terraform-provider-aws_v1.17.0_x4
2018-05-10T15:25:03.647+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: plugin address: timestamp=2018-05-10T15:25:03.647+0100 address=/var/folders/55/9j91bv1s0pn3kt583yygy63c0000gr/T/plugin050385668 network=unix
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
2018-05-10T15:25:03.716+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:03 [INFO] No assume_role block read from configuration
2018-05-10T15:25:03.716+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:03 [INFO] Building AWS region structure
2018-05-10T15:25:03.716+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:03 [INFO] Building AWS auth structure
2018-05-10T15:25:03.716+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:03 [INFO] Setting AWS metadata API timeout to 100ms
2018-05-10T15:25:04.488+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:04 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2018-05-10T15:25:04.488+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:04 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2018-05-10T15:25:04.489+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:04 [INFO] Initializing DeviceFarm SDK connection
2018-05-10T15:25:04.910+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:04 [DEBUG] Trying to get account ID via iam:GetUser
data.aws_caller_identity.current: Refreshing state...
2018-05-10T15:25:05.392+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:05 [DEBUG] Reading Caller Identity
2018-05-10T15:25:05.719+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:05 [DEBUG] Received Caller Identity: {
2018-05-10T15:25:05.719+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: Account: "xxx",
2018-05-10T15:25:05.719+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: Arn: "arn:aws:iam::xxx:user/dev-xx",
2018-05-10T15:25:05.719+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: UserId: "xxxxx"
2018-05-10T15:25:05.719+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: }
------------------------------------------------------------------------
2018-05-10T15:25:05.734+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:05 [INFO] No assume_role block read from configuration
2018-05-10T15:25:05.734+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:05 [INFO] Building AWS region structure
2018-05-10T15:25:05.734+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:05 [INFO] Building AWS auth structure
2018-05-10T15:25:05.734+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:05 [INFO] Setting AWS metadata API timeout to 100ms
2018-05-10T15:25:06.372+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:06 [INFO] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2018-05-10T15:25:06.372+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:06 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2018-05-10T15:25:06.373+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:06 [INFO] Initializing DeviceFarm SDK connection
2018-05-10T15:25:06.704+0100 [DEBUG] plugin.terraform-provider-aws_v1.17.0_x4: 2018/05/10 15:25:06 [DEBUG] Trying to get account ID via iam:GetUser
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
+ aws_cloudwatch_log_group.newrelic
id: <computed>
arn: <computed>
name: "sdadasdas"
retention_in_days: "30"
Plan: 1 to add, 0 to change, 0 to destroy.
------------------------------------------------------------------------
This plan was saved to: /Users/paulm/Documents/Development/Vagrant/Repos/test-infra/planfile
To perform exactly these actions, run the following command to apply:
terraform apply "/Users/paulm/Documents/Development/Vagrant/Repos/test-infra/planfile"
__ ___________________________________________________________________
/ \ / \
| | | It looks like you want to change infrastructure of |
@ @ | 'test-app-rt-dev' in XXXXXX/test. |
|| || | |
|| || <--| |
|\_/| \___________________________________________________________________/
\___/
continue? y/[n]:^C
ape-dev-rt version
[ERROR] No application name defined for environment ''. Please use -app flag
We should be able to change output format to json to make it machine readable
I saw the PR cleaning up the vendor directory.. Curious if you guys have road mapped moving to Dep?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.