SHARE
TWEET

Untitled

a guest Oct 18th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. data "terraform_remote_state" "stack" {
  2.   backend = "local"
  3.  
  4.   config {
  5.     path = "terraform.tfstate"
  6.   }
  7. }
  8. output "diditwork" {
  9.   value = "${data.terraform_remote_state.stack.aws_autoscaling_group.main.id}"
  10. }
  11.    
  12. {
  13.     "version": 3,
  14.     "terraform_version": "0.9.3",
  15.     "serial": 14,
  16.     "lineage": "dc16a61f-72dd-435b-ba3f-5e36e14aace2",
  17.     "modules": [
  18.         {
  19.             "path": [
  20.                 "root"
  21.             ],
  22.             "outputs": {},
  23.             "resources": {
  24.                 "aws_autoscaling_group.main": {
  25.                     "type": "aws_autoscaling_group",
  26.                     "depends_on": [
  27.                         "aws_launch_configuration.lc"
  28.                     ],
  29.                     "primary": {
  30.                         "id": "djin-sample-asg-stag",
  31.                         "attributes": {
  32.                             "arn": "arn:aws:autoscaling:us-east-1:174120285419:autoScalingGroup:04c470fa-45f8-4711-aa31-b3ede40d6…
RAW Paste Data
Top