Skip to content

Instantly share code, notes, and snippets.

@ingshtrom
Created October 6, 2017 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ingshtrom/c791a9030529e3390902521c8f6bc38c to your computer and use it in GitHub Desktop.
Save ingshtrom/c791a9030529e3390902521c8f6bc38c to your computer and use it in GitHub Desktop.
successful codebuild
[Container] 2017/10/06 13:22:08 Waiting for agent
[Container] 2017/10/06 13:22:19 Phase is DOWNLOAD_SOURCE
[Container] 2017/10/06 13:22:19 CODEBUILD_SRC_DIR=/codebuild/output/src486909174/src/github.com/olmg/provision
[Container] 2017/10/06 13:22:19 YAML location is /codebuild/output/src486909174/src/github.com/olmg/provision/buildspecs/terraform_validate.yaml
[Container] 2017/10/06 13:22:19 Processing buildspec environment variables
[Container] 2017/10/06 13:22:19 TerraformVersion = 0.10.7
[Container] 2017/10/06 13:22:19 Processing project-level environment variables
[Container] 2017/10/06 13:22:19 Moving to directory /codebuild/output/src486909174/src/github.com/olmg/provision
[Container] 2017/10/06 13:22:19 Registering with agent
[Container] 2017/10/06 13:22:19 Phases found in YAML: 2
[Container] 2017/10/06 13:22:19 INSTALL: 17 commands
[Container] 2017/10/06 13:22:19 BUILD: 3 commands
[Container] 2017/10/06 13:22:19 Phase complete: DOWNLOAD_SOURCE Success: true
[Container] 2017/10/06 13:22:19 Phase context status code: Message:
[Container] 2017/10/06 13:22:19 Entering phase INSTALL
[Container] 2017/10/06 13:22:19 Running command apt-get update -y
Ign http://archive.ubuntu.com trusty InRelease
Get:1 http://archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:2 http://archive.ubuntu.com trusty-security InRelease [65.9 kB]
Get:3 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:4 http://archive.ubuntu.com trusty Release [58.5 kB]
Get:5 http://archive.ubuntu.com trusty-updates/main Sources [502 kB]
Get:6 http://archive.ubuntu.com trusty-updates/restricted Sources [6449 B]
Get:7 http://archive.ubuntu.com trusty-updates/universe Sources [241 kB]
Get:8 http://archive.ubuntu.com trusty-updates/main amd64 Packages [1279 kB]
Get:9 http://archive.ubuntu.com trusty-updates/restricted amd64 Packages [21.1 kB]
Get:10 http://archive.ubuntu.com trusty-updates/universe amd64 Packages [554 kB]
Get:11 http://archive.ubuntu.com trusty-security/main Sources [182 kB]
Get:12 http://archive.ubuntu.com trusty-security/restricted Sources [5050 B]
Get:13 http://archive.ubuntu.com trusty-security/universe Sources [76.3 kB]
Get:14 http://archive.ubuntu.com trusty-security/main amd64 Packages [833 kB]
Get:15 http://archive.ubuntu.com trusty-security/restricted amd64 Packages [17.8 kB]
Get:16 http://archive.ubuntu.com trusty-security/universe amd64 Packages [240 kB]
Get:17 http://archive.ubuntu.com trusty/main Sources [1335 kB]
Get:18 http://archive.ubuntu.com trusty/restricted Sources [5335 B]
Get:19 http://archive.ubuntu.com trusty/universe Sources [7926 kB]
Get:20 http://archive.ubuntu.com trusty/main amd64 Packages [1743 kB]
Get:21 http://archive.ubuntu.com trusty/restricted amd64 Packages [16.0 kB]
Get:22 http://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB]
Fetched 22.8 MB in 6s (3384 kB/s)
Reading package lists...
[Container] 2017/10/06 13:22:31 Running command apt-get install -y jq
Reading package lists...
Building dependency tree...
Reading state information...
The following package was automatically installed and is no longer required:
libcurl3-gnutls
Use 'apt-get autoremove' to remove it.
The following NEW packages will be installed:
jq
0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
Need to get 97.8 kB of archives.
After this operation, 296 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ trusty/universe jq amd64 1.3-1.1ubuntu1 [97.8 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 97.8 kB in 0s (282 kB/s)
Selecting previously unselected package jq.
(Reading database ... 26040 files and directories currently installed.)
Preparing to unpack .../jq_1.3-1.1ubuntu1_amd64.deb ...
Unpacking jq (1.3-1.1ubuntu1) ...
Setting up jq (1.3-1.1ubuntu1) ...
[Container] 2017/10/06 13:22:37 Running command creds_output=$(curl 169.254.170.2$AWS_CONTAINER_CREDENTIALS_RELATIVE_URI)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1499 100 1499 0 0 2181k 0 --:--:-- --:--:-- --:--:-- 1463k
[Container] 2017/10/06 13:22:37 Running command AWS_ACCESS_KEY_ID=$(echo $creds_output | jq --raw-output .AccessKeyId)
[Container] 2017/10/06 13:22:37 Running command AWS_SECRET_ACCESS_KEY=$(echo $creds_output | jq --raw-output .SecretAccessKey)
[Container] 2017/10/06 13:22:37 Running command AWS_SESSION_TOKEN=$(echo $creds_output | jq --raw-output .Token)
[Container] 2017/10/06 13:22:37 Running command AWS_DEFAULT_REGION=us-east-2
[Container] 2017/10/06 13:22:37 Running command echo $creds_output
{
"RoleArn": "<omitted>",
"AccessKeyId": "<omitted>",
"SecretAccessKey": "<omitted>",
"Token": "<omitted>",
"Expiration": "2017-10-06T14:22:06Z"
}
[Container] 2017/10/06 13:22:37 Running command echo $AWS_ACCESS_KEY_ID
<omitted>
[Container] 2017/10/06 13:22:37 Running command echo $AWS_SECRET_ACCESS_KEY
<omitted>
[Container] 2017/10/06 13:22:37 Running command echo $AWS_SESSION_TOKEN
<omitted>
[Container] 2017/10/06 13:22:37 Running command echo $AWS_DEFAULT_REGION
us-east-2
[Container] 2017/10/06 13:22:37 Running command cd /tmp
[Container] 2017/10/06 13:22:37 Running command curl -o terraform.zip https://releases.hashicorp.com/terraform/${TerraformVersion}/terraform_${TerraformVersion}_linux_amd64.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 12.8M 100 12.8M 0 0 19.3M 0 --:--:-- --:--:-- --:--:-- 19.3M
[Container] 2017/10/06 13:22:38 Running command unzip terraform.zip
Archive: terraform.zip
inflating: terraform
[Container] 2017/10/06 13:22:38 Running command mv terraform /usr/bin
[Container] 2017/10/06 13:22:38 Running command cd -
/codebuild/output/src486909174/src/github.com/olmg/provision
[Container] 2017/10/06 13:22:38 Phase complete: INSTALL Success: true
[Container] 2017/10/06 13:22:38 Phase context status code: Message:
[Container] 2017/10/06 13:22:38 Entering phase BUILD
[Container] 2017/10/06 13:22:38 Running command cd ./aws/terraform
[Container] 2017/10/06 13:22:38 Running command terraform init -no-color
Initializing the backend...
Successfully configured the backend "s3"! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins...
- Checking for available provider plugins on https://releases.hashicorp.com...
- Downloading plugin for provider "aws" (1.0.0)...
The following providers do not have any version constraints in configuration,
so the latest version was installed.
To prevent automatic upgrades to new major versions that may contain breaking
changes, it is recommended to add version = "..." constraints to the
corresponding provider blocks in configuration, with the constraint strings
suggested below.
* provider.aws: version = "~> 1.0"
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
[Container] 2017/10/06 13:22:41 Running command terraform validate -no-color
[Container] 2017/10/06 13:22:41 Phase complete: BUILD Success: true
[Container] 2017/10/06 13:22:41 Phase context status code: Message:
[Container] 2017/10/06 13:22:42 Preparing to copy artifacts
[Container] 2017/10/06 13:22:42 No artifact files specified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment