Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save unloadedroe/ad8601bd2fdcbcf677b3115c3b771fb0 to your computer and use it in GitHub Desktop.
Save unloadedroe/ad8601bd2fdcbcf677b3115c3b771fb0 to your computer and use it in GitHub Desktop.

Revisions

  1. @kixorz kixorz revised this gist Oct 5, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ubuntu-cloudformation.json
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@
    "mkdir aws-cfn-bootstrap-latest\n",
    "curl https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz | tar xz -C aws-cfn-bootstrap-latest --strip-components 1\n",
    "easy_install aws-cfn-bootstrap-latest\n",
    "/usr/local/bin/cfn-init --stack ", { "Ref":"AWS::StackName" }, " --resource WebServer", " --region ", { "Ref": "AWS::Region" }, "\n"
    "/usr/local/bin/cfn-init --stack ", { "Ref":"AWS::StackName" }, " --resource WebServer", " --region ", { "Ref": "AWS::Region" }, "\n",
    "\n",
    "/usr/local/bin/cfn-signal --exit-code $? '", { "Ref" : "WaitHandle" }, "'\n"
    ]]}
  2. @kixorz kixorz revised this gist Apr 8, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions ubuntu-cloudformation.json
    Original file line number Diff line number Diff line change
    @@ -6,8 +6,8 @@
    "mkdir aws-cfn-bootstrap-latest\n",
    "curl https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz | tar xz -C aws-cfn-bootstrap-latest --strip-components 1\n",
    "easy_install aws-cfn-bootstrap-latest\n",
    "/usr/local/bin/cfn-init -s ", { "Ref":"AWS::StackName" }, " -r WebServer", " --region ", { "Ref": "AWS::Region" }, "\n"
    "/usr/local/bin/cfn-init --stack ", { "Ref":"AWS::StackName" }, " --resource WebServer", " --region ", { "Ref": "AWS::Region" }, "\n"
    "\n",
    "/usr/local/bin/cfn-signal -e $? '", { "Ref" : "WaitHandle" }, "'\n"
    "/usr/local/bin/cfn-signal --exit-code $? '", { "Ref" : "WaitHandle" }, "'\n"
    ]]}
    }
  3. @kixorz kixorz revised this gist Apr 8, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ubuntu-cloudformation.json
    Original file line number Diff line number Diff line change
    @@ -7,5 +7,7 @@
    "curl https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz | tar xz -C aws-cfn-bootstrap-latest --strip-components 1\n",
    "easy_install aws-cfn-bootstrap-latest\n",
    "/usr/local/bin/cfn-init -s ", { "Ref":"AWS::StackName" }, " -r WebServer", " --region ", { "Ref": "AWS::Region" }, "\n"
    "\n",
    "/usr/local/bin/cfn-signal -e $? '", { "Ref" : "WaitHandle" }, "'\n"
    ]]}
    }
  4. @kixorz kixorz revised this gist Apr 8, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ubuntu-cloudformation.json
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,6 @@
    "mkdir aws-cfn-bootstrap-latest\n",
    "curl https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz | tar xz -C aws-cfn-bootstrap-latest --strip-components 1\n",
    "easy_install aws-cfn-bootstrap-latest\n",
    "/usr/local/bin/cfn-init -s ", { "Ref":"AWS::StackName" }, " -r Instance ", " --access-key AccessKey --secret-key SecretKey --region ", { "Ref": "AWS::Region" },"\n"
    "/usr/local/bin/cfn-init -s ", { "Ref":"AWS::StackName" }, " -r WebServer", " --region ", { "Ref": "AWS::Region" }, "\n"
    ]]}
    }
  5. @kixorz kixorz created this gist Apr 8, 2014.
    11 changes: 11 additions & 0 deletions ubuntu-cloudformation.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    "UserData": {
    "Fn::Base64": { "Fn::Join":["", [
    "#!/bin/bash -ex\n",
    "apt-get update\n",
    "apt-get -y install python-setuptools\n",
    "mkdir aws-cfn-bootstrap-latest\n",
    "curl https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz | tar xz -C aws-cfn-bootstrap-latest --strip-components 1\n",
    "easy_install aws-cfn-bootstrap-latest\n",
    "/usr/local/bin/cfn-init -s ", { "Ref":"AWS::StackName" }, " -r Instance ", " --access-key AccessKey --secret-key SecretKey --region ", { "Ref": "AWS::Region" },"\n"
    ]]}
    }