How to use the stacker.blueprints.variables.types.CFNType function in stacker

To help you get started, we’ve selected a few stacker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cloudtools / stacker / stacker / blueprints / variables / types.py View on Github external
SSMParameterName = CFNType("AWS::SSM::Parameter::Name")
SSMParameterValueString = CFNType("AWS::SSM::Parameter::Value")
SSMParameterValueStringList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueCommaDelimitedList = CFNType(
    "AWS::SSM::Parameter::Value")
# Each AWS-specific type here is repeated from the the list above
SSMParameterValueEC2AvailabilityZoneName = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2ImageId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2InstanceId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2KeyPairKeyName = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SecurityGroupGroupName = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SecurityGroupId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SubnetId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2VolumeId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2VPCId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueRoute53HostedZoneId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2AvailabilityZoneNameList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2ImageIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2InstanceIdList = CFNType(
github cloudtools / stacker / stacker / blueprints / variables / types.py View on Github external
"AWS::SSM::Parameter::Value")
SSMParameterValueEC2KeyPairKeyName = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SecurityGroupGroupName = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SecurityGroupId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SubnetId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2VolumeId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2VPCId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueRoute53HostedZoneId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2AvailabilityZoneNameList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2ImageIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2InstanceIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2SecurityGroupGroupNameList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2SecurityGroupIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2SubnetIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2VolumeIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2VPCIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueRoute53HostedZoneIdList = CFNType(
github cloudtools / stacker / stacker / blueprints / variables / types.py View on Github external
"""
        self.parameter_type = parameter_type


# General CFN types
CFNString = CFNType("String")
CFNNumber = CFNType("Number")
CFNNumberList = CFNType("List")
CFNCommaDelimitedList = CFNType("CommaDelimitedList")

# AWS-Specific Parameter Types
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html#aws-specific-parameter-types
EC2AvailabilityZoneName = CFNType("AWS::EC2::AvailabilityZone::Name")
EC2ImageId = CFNType("AWS::EC2::Image::Id")
EC2InstanceId = CFNType("AWS::EC2::Instance::Id")
EC2KeyPairKeyName = CFNType("AWS::EC2::KeyPair::KeyName")
EC2SecurityGroupGroupName = CFNType("AWS::EC2::SecurityGroup::GroupName")
EC2SecurityGroupId = CFNType("AWS::EC2::SecurityGroup::Id")
EC2SubnetId = CFNType("AWS::EC2::Subnet::Id")
EC2VolumeId = CFNType("AWS::EC2::Volume::Id")
EC2VPCId = CFNType("AWS::EC2::VPC::Id")
Route53HostedZoneId = CFNType("AWS::Route53::HostedZone::Id")
EC2AvailabilityZoneNameList = CFNType("List")
EC2ImageIdList = CFNType("List")
EC2InstanceIdList = CFNType("List")
EC2SecurityGroupGroupNameList = CFNType(
    "List")
EC2SecurityGroupIdList = CFNType("List")
EC2SubnetIdList = CFNType("List")
EC2VolumeIdList = CFNType("List")
EC2VPCIdList = CFNType("List")
Route53HostedZoneIdList = CFNType("List")
github cloudtools / stacker / stacker / blueprints / variables / types.py View on Github external
CFNNumberList = CFNType("List")
CFNCommaDelimitedList = CFNType("CommaDelimitedList")

# AWS-Specific Parameter Types
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html#aws-specific-parameter-types
EC2AvailabilityZoneName = CFNType("AWS::EC2::AvailabilityZone::Name")
EC2ImageId = CFNType("AWS::EC2::Image::Id")
EC2InstanceId = CFNType("AWS::EC2::Instance::Id")
EC2KeyPairKeyName = CFNType("AWS::EC2::KeyPair::KeyName")
EC2SecurityGroupGroupName = CFNType("AWS::EC2::SecurityGroup::GroupName")
EC2SecurityGroupId = CFNType("AWS::EC2::SecurityGroup::Id")
EC2SubnetId = CFNType("AWS::EC2::Subnet::Id")
EC2VolumeId = CFNType("AWS::EC2::Volume::Id")
EC2VPCId = CFNType("AWS::EC2::VPC::Id")
Route53HostedZoneId = CFNType("AWS::Route53::HostedZone::Id")
EC2AvailabilityZoneNameList = CFNType("List")
EC2ImageIdList = CFNType("List")
EC2InstanceIdList = CFNType("List")
EC2SecurityGroupGroupNameList = CFNType(
    "List")
EC2SecurityGroupIdList = CFNType("List")
EC2SubnetIdList = CFNType("List")
EC2VolumeIdList = CFNType("List")
EC2VPCIdList = CFNType("List")
Route53HostedZoneIdList = CFNType("List")

# SSM Parameter Types
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html#aws-ssm-parameter-types
SSMParameterName = CFNType("AWS::SSM::Parameter::Name")
SSMParameterValueString = CFNType("AWS::SSM::Parameter::Value")
SSMParameterValueStringList = CFNType(
    "AWS::SSM::Parameter::Value>")
github cloudtools / stacker / stacker / blueprints / variables / types.py View on Github external
"AWS::SSM::Parameter::Value")
SSMParameterValueEC2VolumeId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2VPCId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueRoute53HostedZoneId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2AvailabilityZoneNameList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2ImageIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2InstanceIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2SecurityGroupGroupNameList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2SecurityGroupIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2SubnetIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2VolumeIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2VPCIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueRoute53HostedZoneIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
github cloudtools / stacker / stacker / blueprints / variables / types.py View on Github external
Route53HostedZoneIdList = CFNType("List")

# SSM Parameter Types
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html#aws-ssm-parameter-types
SSMParameterName = CFNType("AWS::SSM::Parameter::Name")
SSMParameterValueString = CFNType("AWS::SSM::Parameter::Value")
SSMParameterValueStringList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueCommaDelimitedList = CFNType(
    "AWS::SSM::Parameter::Value")
# Each AWS-specific type here is repeated from the the list above
SSMParameterValueEC2AvailabilityZoneName = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2ImageId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2InstanceId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2KeyPairKeyName = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SecurityGroupGroupName = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SecurityGroupId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SubnetId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2VolumeId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2VPCId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueRoute53HostedZoneId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2AvailabilityZoneNameList = CFNType(
github cloudtools / stacker / stacker / blueprints / variables / types.py View on Github external
"""
        self.parameter_type = parameter_type


# General CFN types
CFNString = CFNType("String")
CFNNumber = CFNType("Number")
CFNNumberList = CFNType("List")
CFNCommaDelimitedList = CFNType("CommaDelimitedList")

# AWS-Specific Parameter Types
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html#aws-specific-parameter-types
EC2AvailabilityZoneName = CFNType("AWS::EC2::AvailabilityZone::Name")
EC2ImageId = CFNType("AWS::EC2::Image::Id")
EC2InstanceId = CFNType("AWS::EC2::Instance::Id")
EC2KeyPairKeyName = CFNType("AWS::EC2::KeyPair::KeyName")
EC2SecurityGroupGroupName = CFNType("AWS::EC2::SecurityGroup::GroupName")
EC2SecurityGroupId = CFNType("AWS::EC2::SecurityGroup::Id")
EC2SubnetId = CFNType("AWS::EC2::Subnet::Id")
EC2VolumeId = CFNType("AWS::EC2::Volume::Id")
EC2VPCId = CFNType("AWS::EC2::VPC::Id")
Route53HostedZoneId = CFNType("AWS::Route53::HostedZone::Id")
EC2AvailabilityZoneNameList = CFNType("List")
EC2ImageIdList = CFNType("List")
EC2InstanceIdList = CFNType("List")
EC2SecurityGroupGroupNameList = CFNType(
    "List")
EC2SecurityGroupIdList = CFNType("List")
EC2SubnetIdList = CFNType("List")
EC2VolumeIdList = CFNType("List")
EC2VPCIdList = CFNType("List")
github cloudtools / stacker / stacker / blueprints / variables / types.py View on Github external
"AWS::SSM::Parameter::Value")
SSMParameterValueEC2ImageId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2InstanceId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2KeyPairKeyName = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SecurityGroupGroupName = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SecurityGroupId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SubnetId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2VolumeId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2VPCId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueRoute53HostedZoneId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2AvailabilityZoneNameList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2ImageIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2InstanceIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2SecurityGroupGroupNameList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2SecurityGroupIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2SubnetIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2VolumeIdList = CFNType(
github cloudtools / stacker / stacker / blueprints / variables / types.py View on Github external
"AWS::SSM::Parameter::Value")
SSMParameterValueEC2InstanceId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2KeyPairKeyName = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SecurityGroupGroupName = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SecurityGroupId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2SubnetId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2VolumeId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2VPCId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueRoute53HostedZoneId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2AvailabilityZoneNameList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2ImageIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2InstanceIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2SecurityGroupGroupNameList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2SecurityGroupIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2SubnetIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2VolumeIdList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueEC2VPCIdList = CFNType(
github cloudtools / stacker / stacker / blueprints / variables / types.py View on Github external
EC2KeyPairKeyName = CFNType("AWS::EC2::KeyPair::KeyName")
EC2SecurityGroupGroupName = CFNType("AWS::EC2::SecurityGroup::GroupName")
EC2SecurityGroupId = CFNType("AWS::EC2::SecurityGroup::Id")
EC2SubnetId = CFNType("AWS::EC2::Subnet::Id")
EC2VolumeId = CFNType("AWS::EC2::Volume::Id")
EC2VPCId = CFNType("AWS::EC2::VPC::Id")
Route53HostedZoneId = CFNType("AWS::Route53::HostedZone::Id")
EC2AvailabilityZoneNameList = CFNType("List")
EC2ImageIdList = CFNType("List")
EC2InstanceIdList = CFNType("List")
EC2SecurityGroupGroupNameList = CFNType(
    "List")
EC2SecurityGroupIdList = CFNType("List")
EC2SubnetIdList = CFNType("List")
EC2VolumeIdList = CFNType("List")
EC2VPCIdList = CFNType("List")
Route53HostedZoneIdList = CFNType("List")

# SSM Parameter Types
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/parameters-section-structure.html#aws-ssm-parameter-types
SSMParameterName = CFNType("AWS::SSM::Parameter::Name")
SSMParameterValueString = CFNType("AWS::SSM::Parameter::Value")
SSMParameterValueStringList = CFNType(
    "AWS::SSM::Parameter::Value>")
SSMParameterValueCommaDelimitedList = CFNType(
    "AWS::SSM::Parameter::Value")
# Each AWS-specific type here is repeated from the the list above
SSMParameterValueEC2AvailabilityZoneName = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2ImageId = CFNType(
    "AWS::SSM::Parameter::Value")
SSMParameterValueEC2InstanceId = CFNType(