Skip to content

Instantly share code, notes, and snippets.

@neechbear
Created May 16, 2018 11:41
Show Gist options
  • Save neechbear/f8e9bf69d920ff4991a4c6fea2c90d2b to your computer and use it in GitHub Desktop.
Save neechbear/f8e9bf69d920ff4991a4c6fea2c90d2b to your computer and use it in GitHub Desktop.
gs-5487 test.sh output
nicolaw@laptop:~/Coding/gs-5487 $ env -i PATH=/Users/Nicola/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin HOME=~ ./test.sh
+ export TF_LOG=TRACE TF_LOG_PATH=terraform.log
+ TF_LOG=TRACE
+ TF_LOG_PATH=terraform.log
+ env
TF_LOG_PATH=terraform.log
TF_LOG=TRACE
PATH=/Users/Nicola/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin
PWD=/Users/Nicola/Coding/gs-5487
SHLVL=1
HOME=/Users/Nicola
_=/usr/bin/env
+ rm -Rf .terraform terraform.tfstate terraform.log
+ dd if=/dev/zero of=bigfile bs=1 count=0 seek=100m
0+0 records in
0+0 records out
0 bytes transferred in 0.000009 secs (0 bytes/sec)
+ terraform init
Initializing provider plugins...
- Checking for available provider plugins on https://releases.hashicorp.com...
- Downloading plugin for provider "archive" (1.0.3)...
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.archive: 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.
+ terraform apply
data.archive_file.myarchive: Refreshing state...
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
real 0m27.717s
user 0m21.242s
sys 0m8.167s
+ find . -ls
3613560 0 drwxr-xr-x 10 nicolaw staff 320 May 16 12:40 .
3614938 512 -rw-r--r-- 1 nicolaw staff 204090 May 16 12:39 ./myarchive.zip
3615592 2457608 -rw-r--r-- 1 nicolaw staff 1258292844 May 16 12:40 ./terraform.tfstate
3614918 0 -rw-r--r-- 1 nicolaw staff 104857600 May 16 12:39 ./bigfile
3614706 8 -rw-r--r-- 1 nicolaw staff 267 May 16 11:57 ./main.tf
3615580 136 -rw-r--r-- 1 nicolaw staff 68335 May 16 12:40 ./terraform.log
3615584 0 drwxr-xr-x 3 nicolaw staff 96 May 16 12:39 ./.terraform
3615585 0 drwxr-xr-x 3 nicolaw staff 96 May 16 12:39 ./.terraform/plugins
3615586 0 drwxr-xr-x 4 nicolaw staff 128 May 16 12:39 ./.terraform/plugins/darwin_amd64
3615590 8 -rwxr-xr-x 1 nicolaw staff 160 May 16 12:39 ./.terraform/plugins/darwin_amd64/lock.json
3615589 25752 -rwxr-xr-x 1 nicolaw staff 13183408 May 16 12:39 ./.terraform/plugins/darwin_amd64/terraform-provider-archive_v1.0.3_x4
3615380 8 -rwxr-xr-x 1 nicolaw staff 286 May 16 12:29 ./test.sh
3615085 8 -rw-r--r-- 1 nicolaw staff 607 May 16 12:18 ./gs-5487-example.zip
+ grep -A 8 -B 8 -oE '^.\s+"source.[0-9]+.content": .{20}' terraform.tfstate
"attributes": {
"id": "6d55569b0c751d74d69e002e2075ce36a1ecfbc8",
"output_base64sha256": "g3fkAYiF5slzo15e49dIEfb3u3w1qR1uVGwK/2qYNuI=",
"output_md5": "b3d6ef965c429c6399afb1ccee9cdd22",
"output_path": "myarchive.zip",
"output_sha": "6d55569b0c751d74d69e002e2075ce36a1ecfbc8",
"output_size": "204090",
"source.#": "2",
"source.3186047916.content": "\u0000\u0000\u0000\
"source.3186047916.filename": "bigfile.1",
--
"source.3186047916.filename": "bigfile.1",
"source.4204512593.content": "\u0000\u0000\u0000\
"source.4204512593.filename": "bigfile.2",
"type": "zip"
},
"meta": {},
"tainted": false
},
"deposed": [],
"provider": "provider.archive"
nicolaw@laptop:~/Coding/gs-5487 $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment