Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.16 KB

File metadata and controls

43 lines (35 loc) · 1.16 KB

EIP nested stack

To use this stack you will need to set the required input parameters and include the stack as a resource.

Example input definition

    "StacksVersion": {
      "Description": "Version of the Nubis Stacks",
      "Type": "String",
      "Default": "v1.0.0"
    },

Example resource definition

    "EIPStack": {
        "Type": "AWS::CloudFormation::Stack",
        "Properties": {
            "TemplateURL": { "Fn::Join": [ "/", [ "https://s3.amazonaws.com/nubis-stacks", { "Ref": "StacksVersion" }, "eip.template" ] ] },
            "TimeoutInMinutes": "60",
            "Parameters": {
                "StackName": {
                    "Ref": "AWS::StackName"
                }
            }
        }
    }

Output values

  • EIPAllocationID - Returns EIP allocation ID

  • ElasticIP - Returns Elastic IP address

  • IAMRole - Returns name of the IAM role

Notes

  • This stack requires the --capabilities CAPABILITY_IAM flag when calling aws cli

  • This stack will also need to be used in conjunction with the nubis-puppet-eip puppet module, this module will associate an EIP to the instance

include nubis::eip