stratosphere: EDSL for AWS CloudFormation

[ aws, cloud, library, mit ] [ Propose Tags ]

EDSL for AWS CloudFormation


[Skip to Readme]

Modules

[Last Documentation]

  • Stratosphere
    • Stratosphere.Check
    • Stratosphere.Helpers
    • Stratosphere.Outputs
    • Stratosphere.Parameters
    • ResourceAttributes
      • Stratosphere.ResourceAttributes.AutoScalingReplacingUpdatePolicy
      • Stratosphere.ResourceAttributes.AutoScalingRollingUpdatePolicy
      • Stratosphere.ResourceAttributes.AutoScalingScheduledActionPolicy
      • Stratosphere.ResourceAttributes.CreationPolicy
      • Stratosphere.ResourceAttributes.ResourceSignal
      • Stratosphere.ResourceAttributes.UpdatePolicy
    • ResourceProperties
      • Stratosphere.ResourceProperties.ApiGatewayApiKeyStageKey
      • Stratosphere.ResourceProperties.ApiGatewayDeploymentMethodSetting
      • Stratosphere.ResourceProperties.ApiGatewayDeploymentStageDescription
      • Stratosphere.ResourceProperties.ApiGatewayMethodIntegration
      • Stratosphere.ResourceProperties.ApiGatewayMethodIntegrationResponse
      • Stratosphere.ResourceProperties.ApiGatewayMethodMethodResponse
      • Stratosphere.ResourceProperties.ApiGatewayRestApiS3Location
      • Stratosphere.ResourceProperties.ApiGatewayStageMethodSetting
      • Stratosphere.ResourceProperties.ApiGatewayUsagePlanApiStage
      • Stratosphere.ResourceProperties.ApiGatewayUsagePlanQuotaSettings
      • Stratosphere.ResourceProperties.ApiGatewayUsagePlanThrottleSettings
      • Stratosphere.ResourceProperties.ApplicationAutoScalingScalingPolicyStepAdjustment
      • Stratosphere.ResourceProperties.ApplicationAutoScalingScalingPolicyStepScalingPolicyConfiguration
      • Stratosphere.ResourceProperties.AutoScalingAutoScalingGroupMetricsCollection
      • Stratosphere.ResourceProperties.AutoScalingAutoScalingGroupNotificationConfigurations
      • Stratosphere.ResourceProperties.AutoScalingAutoScalingGroupTagProperty
      • Stratosphere.ResourceProperties.AutoScalingLaunchConfigurationBlockDevice
      • Stratosphere.ResourceProperties.AutoScalingLaunchConfigurationBlockDeviceMapping
      • Stratosphere.ResourceProperties.AutoScalingScalingPolicyStepAdjustment
      • Stratosphere.ResourceProperties.CertificateManagerCertificateDomainValidationOption
      • Stratosphere.ResourceProperties.CloudFrontDistributionCacheBehavior
      • Stratosphere.ResourceProperties.CloudFrontDistributionCookies
      • Stratosphere.ResourceProperties.CloudFrontDistributionCustomErrorResponse
      • Stratosphere.ResourceProperties.CloudFrontDistributionCustomOriginConfig
      • Stratosphere.ResourceProperties.CloudFrontDistributionDefaultCacheBehavior
      • Stratosphere.ResourceProperties.CloudFrontDistributionDistributionConfig
      • Stratosphere.ResourceProperties.CloudFrontDistributionForwardedValues
      • Stratosphere.ResourceProperties.CloudFrontDistributionGeoRestriction
      • Stratosphere.ResourceProperties.CloudFrontDistributionLogging
      • Stratosphere.ResourceProperties.CloudFrontDistributionOrigin
      • Stratosphere.ResourceProperties.CloudFrontDistributionOriginCustomHeader
      • Stratosphere.ResourceProperties.CloudFrontDistributionRestrictions
      • Stratosphere.ResourceProperties.CloudFrontDistributionS3OriginConfig
      • Stratosphere.ResourceProperties.CloudFrontDistributionViewerCertificate
      • Stratosphere.ResourceProperties.CloudWatchAlarmDimension
      • Stratosphere.ResourceProperties.CodeBuildProjectArtifacts
      • Stratosphere.ResourceProperties.CodeBuildProjectEnvironment
      • Stratosphere.ResourceProperties.CodeBuildProjectEnvironmentVariable
      • Stratosphere.ResourceProperties.CodeBuildProjectSource
      • Stratosphere.ResourceProperties.CodeBuildProjectSourceAuth
      • Stratosphere.ResourceProperties.CodeCommitRepositoryRepositoryTrigger
      • Stratosphere.ResourceProperties.CodeDeployDeploymentConfigMinimumHealthyHosts
      • Stratosphere.ResourceProperties.CodeDeployDeploymentGroupDeployment
      • Stratosphere.ResourceProperties.CodeDeployDeploymentGroupEC2TagFilter
      • Stratosphere.ResourceProperties.CodeDeployDeploymentGroupGitHubLocation
      • Stratosphere.ResourceProperties.CodeDeployDeploymentGroupRevisionLocation
      • Stratosphere.ResourceProperties.CodeDeployDeploymentGroupS3Location
      • Stratosphere.ResourceProperties.CodeDeployDeploymentGroupTagFilter
      • Stratosphere.ResourceProperties.CodePipelineCustomActionTypeArtifactDetails
      • Stratosphere.ResourceProperties.CodePipelineCustomActionTypeConfigurationProperties
      • Stratosphere.ResourceProperties.CodePipelineCustomActionTypeSettings
      • Stratosphere.ResourceProperties.CodePipelinePipelineActionDeclaration
      • Stratosphere.ResourceProperties.CodePipelinePipelineActionTypeId
      • Stratosphere.ResourceProperties.CodePipelinePipelineArtifactStore
      • Stratosphere.ResourceProperties.CodePipelinePipelineBlockerDeclaration
      • Stratosphere.ResourceProperties.CodePipelinePipelineEncryptionKey
      • Stratosphere.ResourceProperties.CodePipelinePipelineInputArtifact
      • Stratosphere.ResourceProperties.CodePipelinePipelineOutputArtifact
      • Stratosphere.ResourceProperties.CodePipelinePipelineStageDeclaration
      • Stratosphere.ResourceProperties.CodePipelinePipelineStageTransition
      • Stratosphere.ResourceProperties.ConfigConfigRuleScope
      • Stratosphere.ResourceProperties.ConfigConfigRuleSource
      • Stratosphere.ResourceProperties.ConfigConfigRuleSourceDetail
      • Stratosphere.ResourceProperties.ConfigConfigurationRecorderRecordingGroup
      • Stratosphere.ResourceProperties.ConfigDeliveryChannelConfigSnapshotDeliveryProperties
      • Stratosphere.ResourceProperties.DataPipelinePipelineField
      • Stratosphere.ResourceProperties.DataPipelinePipelineParameterAttribute
      • Stratosphere.ResourceProperties.DataPipelinePipelineParameterObject
      • Stratosphere.ResourceProperties.DataPipelinePipelineParameterValue
      • Stratosphere.ResourceProperties.DataPipelinePipelinePipelineObject
      • Stratosphere.ResourceProperties.DataPipelinePipelinePipelineTag
      • Stratosphere.ResourceProperties.DirectoryServiceMicrosoftADVpcSettings
      • Stratosphere.ResourceProperties.DirectoryServiceSimpleADVpcSettings
      • Stratosphere.ResourceProperties.DynamoDBTableAttributeDefinition
      • Stratosphere.ResourceProperties.DynamoDBTableGlobalSecondaryIndex
      • Stratosphere.ResourceProperties.DynamoDBTableKeySchema
      • Stratosphere.ResourceProperties.DynamoDBTableLocalSecondaryIndex
      • Stratosphere.ResourceProperties.DynamoDBTableProjection
      • Stratosphere.ResourceProperties.DynamoDBTableProvisionedThroughput
      • Stratosphere.ResourceProperties.DynamoDBTableStreamSpecification
      • Stratosphere.ResourceProperties.EC2InstanceAssociationParameter
      • Stratosphere.ResourceProperties.EC2InstanceBlockDeviceMapping
      • Stratosphere.ResourceProperties.EC2InstanceEbs
      • Stratosphere.ResourceProperties.EC2InstanceInstanceIpv6Address
      • Stratosphere.ResourceProperties.EC2InstanceNetworkInterface
      • Stratosphere.ResourceProperties.EC2InstanceNoDevice
      • Stratosphere.ResourceProperties.EC2InstancePrivateIpAddressSpecification
      • Stratosphere.ResourceProperties.EC2InstanceSsmAssociation
      • Stratosphere.ResourceProperties.EC2InstanceVolume
      • Stratosphere.ResourceProperties.EC2NetworkAclEntryIcmp
      • Stratosphere.ResourceProperties.EC2NetworkAclEntryPortRange
      • Stratosphere.ResourceProperties.EC2NetworkInterfaceInstanceIpv6Address
      • Stratosphere.ResourceProperties.EC2NetworkInterfacePrivateIpAddressSpecification
      • Stratosphere.ResourceProperties.EC2SecurityGroupRule
      • Stratosphere.ResourceProperties.EC2SpotFleetBlockDeviceMappings
      • Stratosphere.ResourceProperties.EC2SpotFleetEbs
      • Stratosphere.ResourceProperties.EC2SpotFleetIamInstanceProfile
      • Stratosphere.ResourceProperties.EC2SpotFleetInstanceIpv6Address
      • Stratosphere.ResourceProperties.EC2SpotFleetLaunchSpecifications
      • Stratosphere.ResourceProperties.EC2SpotFleetMonitoring
      • Stratosphere.ResourceProperties.EC2SpotFleetNetworkInterfaces
      • Stratosphere.ResourceProperties.EC2SpotFleetPlacement
      • Stratosphere.ResourceProperties.EC2SpotFleetPrivateIpAddresses
      • Stratosphere.ResourceProperties.EC2SpotFleetSecurityGroups
      • Stratosphere.ResourceProperties.EC2SpotFleetSpotFleetRequestConfigData
      • Stratosphere.ResourceProperties.ECSServiceDeploymentConfiguration
      • Stratosphere.ResourceProperties.ECSServiceLoadBalancer
      • Stratosphere.ResourceProperties.ECSTaskDefinitionContainerDefinition
      • Stratosphere.ResourceProperties.ECSTaskDefinitionHostEntry
      • Stratosphere.ResourceProperties.ECSTaskDefinitionHostVolumeProperties
      • Stratosphere.ResourceProperties.ECSTaskDefinitionKeyValuePair
      • Stratosphere.ResourceProperties.ECSTaskDefinitionLogConfiguration
      • Stratosphere.ResourceProperties.ECSTaskDefinitionMountPoint
      • Stratosphere.ResourceProperties.ECSTaskDefinitionPortMapping
      • Stratosphere.ResourceProperties.ECSTaskDefinitionUlimit
      • Stratosphere.ResourceProperties.ECSTaskDefinitionVolume
      • Stratosphere.ResourceProperties.ECSTaskDefinitionVolumeFrom
      • Stratosphere.ResourceProperties.EFSFileSystemElasticFileSystemTag
      • Stratosphere.ResourceProperties.EMRClusterApplication
      • Stratosphere.ResourceProperties.EMRClusterBootstrapActionConfig
      • Stratosphere.ResourceProperties.EMRClusterConfiguration
      • Stratosphere.ResourceProperties.EMRClusterEbsBlockDeviceConfig
      • Stratosphere.ResourceProperties.EMRClusterEbsConfiguration
      • Stratosphere.ResourceProperties.EMRClusterInstanceGroupConfig
      • Stratosphere.ResourceProperties.EMRClusterJobFlowInstancesConfig
      • Stratosphere.ResourceProperties.EMRClusterPlacementType
      • Stratosphere.ResourceProperties.EMRClusterScriptBootstrapActionConfig
      • Stratosphere.ResourceProperties.EMRClusterVolumeSpecification
      • Stratosphere.ResourceProperties.EMRInstanceGroupConfigConfiguration
      • Stratosphere.ResourceProperties.EMRInstanceGroupConfigEbsBlockDeviceConfig
      • Stratosphere.ResourceProperties.EMRInstanceGroupConfigEbsConfiguration
      • Stratosphere.ResourceProperties.EMRInstanceGroupConfigVolumeSpecification
      • Stratosphere.ResourceProperties.EMRStepHadoopJarStepConfig
      • Stratosphere.ResourceProperties.EMRStepKeyValue
      • Stratosphere.ResourceProperties.ElastiCacheReplicationGroupNodeGroupConfiguration
      • Stratosphere.ResourceProperties.ElasticBeanstalkApplicationVersionSourceBundle
      • Stratosphere.ResourceProperties.ElasticBeanstalkConfigurationTemplateConfigurationOptionSetting
      • Stratosphere.ResourceProperties.ElasticBeanstalkConfigurationTemplateSourceConfiguration
      • Stratosphere.ResourceProperties.ElasticBeanstalkEnvironmentOptionSettings
      • Stratosphere.ResourceProperties.ElasticBeanstalkEnvironmentTier
      • Stratosphere.ResourceProperties.ElasticLoadBalancingLoadBalancerAccessLoggingPolicy
      • Stratosphere.ResourceProperties.ElasticLoadBalancingLoadBalancerAppCookieStickinessPolicy
      • Stratosphere.ResourceProperties.ElasticLoadBalancingLoadBalancerConnectionDrainingPolicy
      • Stratosphere.ResourceProperties.ElasticLoadBalancingLoadBalancerConnectionSettings
      • Stratosphere.ResourceProperties.ElasticLoadBalancingLoadBalancerHealthCheck
      • Stratosphere.ResourceProperties.ElasticLoadBalancingLoadBalancerLBCookieStickinessPolicy
      • Stratosphere.ResourceProperties.ElasticLoadBalancingLoadBalancerListeners
      • Stratosphere.ResourceProperties.ElasticLoadBalancingLoadBalancerPolicies
      • Stratosphere.ResourceProperties.ElasticLoadBalancingV2ListenerAction
      • Stratosphere.ResourceProperties.ElasticLoadBalancingV2ListenerCertificate
      • Stratosphere.ResourceProperties.ElasticLoadBalancingV2ListenerRuleAction
      • Stratosphere.ResourceProperties.ElasticLoadBalancingV2ListenerRuleRuleCondition
      • Stratosphere.ResourceProperties.ElasticLoadBalancingV2LoadBalancerLoadBalancerAttribute
      • Stratosphere.ResourceProperties.ElasticLoadBalancingV2TargetGroupMatcher
      • Stratosphere.ResourceProperties.ElasticLoadBalancingV2TargetGroupTargetDescription
      • Stratosphere.ResourceProperties.ElasticLoadBalancingV2TargetGroupTargetGroupAttribute
      • Stratosphere.ResourceProperties.ElasticsearchDomainEBSOptions
      • Stratosphere.ResourceProperties.ElasticsearchDomainElasticsearchClusterConfig
      • Stratosphere.ResourceProperties.ElasticsearchDomainSnapshotOptions
      • Stratosphere.ResourceProperties.EventsRuleTarget
      • Stratosphere.ResourceProperties.GameLiftAliasRoutingStrategy
      • Stratosphere.ResourceProperties.GameLiftBuildS3Location
      • Stratosphere.ResourceProperties.GameLiftFleetIpPermission
      • Stratosphere.ResourceProperties.IAMGroupPolicy
      • Stratosphere.ResourceProperties.IAMRolePolicy
      • Stratosphere.ResourceProperties.IAMUserLoginProfile
      • Stratosphere.ResourceProperties.IAMUserPolicy
      • Stratosphere.ResourceProperties.IoTThingAttributePayload
      • Stratosphere.ResourceProperties.IoTTopicRuleAction
      • Stratosphere.ResourceProperties.IoTTopicRuleCloudwatchAlarmAction
      • Stratosphere.ResourceProperties.IoTTopicRuleCloudwatchMetricAction
      • Stratosphere.ResourceProperties.IoTTopicRuleDynamoDBAction
      • Stratosphere.ResourceProperties.IoTTopicRuleElasticsearchAction
      • Stratosphere.ResourceProperties.IoTTopicRuleFirehoseAction
      • Stratosphere.ResourceProperties.IoTTopicRuleKinesisAction
      • Stratosphere.ResourceProperties.IoTTopicRuleLambdaAction
      • Stratosphere.ResourceProperties.IoTTopicRuleRepublishAction
      • Stratosphere.ResourceProperties.IoTTopicRuleS3Action
      • Stratosphere.ResourceProperties.IoTTopicRuleSnsAction
      • Stratosphere.ResourceProperties.IoTTopicRuleSqsAction
      • Stratosphere.ResourceProperties.IoTTopicRuleTopicRulePayload
      • Stratosphere.ResourceProperties.KinesisFirehoseDeliveryStreamBufferingHints
      • Stratosphere.ResourceProperties.KinesisFirehoseDeliveryStreamCloudWatchLoggingOptions
      • Stratosphere.ResourceProperties.KinesisFirehoseDeliveryStreamCopyCommand
      • Stratosphere.ResourceProperties.KinesisFirehoseDeliveryStreamElasticsearchBufferingHints
      • Stratosphere.ResourceProperties.KinesisFirehoseDeliveryStreamElasticsearchDestinationConfiguration
      • Stratosphere.ResourceProperties.KinesisFirehoseDeliveryStreamElasticsearchRetryOptions
      • Stratosphere.ResourceProperties.KinesisFirehoseDeliveryStreamEncryptionConfiguration
      • Stratosphere.ResourceProperties.KinesisFirehoseDeliveryStreamKMSEncryptionConfig
      • Stratosphere.ResourceProperties.KinesisFirehoseDeliveryStreamRedshiftDestinationConfiguration
      • Stratosphere.ResourceProperties.KinesisFirehoseDeliveryStreamS3DestinationConfiguration
      • Stratosphere.ResourceProperties.LambdaFunctionCode
      • Stratosphere.ResourceProperties.LambdaFunctionDeadLetterConfig
      • Stratosphere.ResourceProperties.LambdaFunctionEnvironment
      • Stratosphere.ResourceProperties.LambdaFunctionVpcConfig
      • Stratosphere.ResourceProperties.LogsMetricFilterMetricTransformation
      • Stratosphere.ResourceProperties.OpsWorksAppDataSource
      • Stratosphere.ResourceProperties.OpsWorksAppEnvironmentVariable
      • Stratosphere.ResourceProperties.OpsWorksAppSource
      • Stratosphere.ResourceProperties.OpsWorksAppSslConfiguration
      • Stratosphere.ResourceProperties.OpsWorksInstanceBlockDeviceMapping
      • Stratosphere.ResourceProperties.OpsWorksInstanceEbsBlockDevice
      • Stratosphere.ResourceProperties.OpsWorksInstanceTimeBasedAutoScaling
      • Stratosphere.ResourceProperties.OpsWorksLayerAutoScalingThresholds
      • Stratosphere.ResourceProperties.OpsWorksLayerLifecycleEventConfiguration
      • Stratosphere.ResourceProperties.OpsWorksLayerLoadBasedAutoScaling
      • Stratosphere.ResourceProperties.OpsWorksLayerRecipes
      • Stratosphere.ResourceProperties.OpsWorksLayerShutdownEventConfiguration
      • Stratosphere.ResourceProperties.OpsWorksLayerVolumeConfiguration
      • Stratosphere.ResourceProperties.OpsWorksStackChefConfiguration
      • Stratosphere.ResourceProperties.OpsWorksStackElasticIp
      • Stratosphere.ResourceProperties.OpsWorksStackRdsDbInstance
      • Stratosphere.ResourceProperties.OpsWorksStackSource
      • Stratosphere.ResourceProperties.OpsWorksStackStackConfigurationManager
      • Stratosphere.ResourceProperties.RDSDBSecurityGroupIngressProperty
      • Stratosphere.ResourceProperties.RDSOptionGroupOptionConfiguration
      • Stratosphere.ResourceProperties.RDSOptionGroupOptionSetting
      • Stratosphere.ResourceProperties.RedshiftClusterParameterGroupParameter
      • Stratosphere.ResourceProperties.Route53HealthCheckAlarmIdentifier
      • Stratosphere.ResourceProperties.Route53HealthCheckHealthCheckConfig
      • Stratosphere.ResourceProperties.Route53HealthCheckHealthCheckTag
      • Stratosphere.ResourceProperties.Route53HostedZoneHostedZoneConfig
      • Stratosphere.ResourceProperties.Route53HostedZoneHostedZoneTag
      • Stratosphere.ResourceProperties.Route53HostedZoneVPC
      • Stratosphere.ResourceProperties.Route53RecordSetAliasTarget
      • Stratosphere.ResourceProperties.Route53RecordSetGeoLocation
      • Stratosphere.ResourceProperties.Route53RecordSetGroupAliasTarget
      • Stratosphere.ResourceProperties.Route53RecordSetGroupGeoLocation
      • Stratosphere.ResourceProperties.Route53RecordSetGroupRecordSet
      • Stratosphere.ResourceProperties.S3BucketCorsConfiguration
      • Stratosphere.ResourceProperties.S3BucketCorsRule
      • Stratosphere.ResourceProperties.S3BucketFilterRule
      • Stratosphere.ResourceProperties.S3BucketLambdaConfiguration
      • Stratosphere.ResourceProperties.S3BucketLifecycleConfiguration
      • Stratosphere.ResourceProperties.S3BucketLoggingConfiguration
      • Stratosphere.ResourceProperties.S3BucketNoncurrentVersionTransition
      • Stratosphere.ResourceProperties.S3BucketNotificationConfiguration
      • Stratosphere.ResourceProperties.S3BucketNotificationFilter
      • Stratosphere.ResourceProperties.S3BucketQueueConfiguration
      • Stratosphere.ResourceProperties.S3BucketRedirectAllRequestsTo
      • Stratosphere.ResourceProperties.S3BucketRedirectRule
      • Stratosphere.ResourceProperties.S3BucketReplicationConfiguration
      • Stratosphere.ResourceProperties.S3BucketReplicationDestination
      • Stratosphere.ResourceProperties.S3BucketReplicationRule
      • Stratosphere.ResourceProperties.S3BucketRoutingRule
      • Stratosphere.ResourceProperties.S3BucketRoutingRuleCondition
      • Stratosphere.ResourceProperties.S3BucketRule
      • Stratosphere.ResourceProperties.S3BucketS3KeyFilter
      • Stratosphere.ResourceProperties.S3BucketTopicConfiguration
      • Stratosphere.ResourceProperties.S3BucketTransition
      • Stratosphere.ResourceProperties.S3BucketVersioningConfiguration
      • Stratosphere.ResourceProperties.S3BucketWebsiteConfiguration
      • Stratosphere.ResourceProperties.SNSTopicSubscription
      • Stratosphere.ResourceProperties.SSMAssociationParameterValues
      • Stratosphere.ResourceProperties.SSMAssociationTarget
      • Stratosphere.ResourceProperties.Tag
      • Stratosphere.ResourceProperties.WAFByteMatchSetByteMatchTuple
      • Stratosphere.ResourceProperties.WAFByteMatchSetFieldToMatch
      • Stratosphere.ResourceProperties.WAFIPSetIPSetDescriptor
      • Stratosphere.ResourceProperties.WAFRulePredicate
      • Stratosphere.ResourceProperties.WAFSizeConstraintSetFieldToMatch
      • Stratosphere.ResourceProperties.WAFSizeConstraintSetSizeConstraint
      • Stratosphere.ResourceProperties.WAFSqlInjectionMatchSetFieldToMatch
      • Stratosphere.ResourceProperties.WAFSqlInjectionMatchSetSqlInjectionMatchTuple
      • Stratosphere.ResourceProperties.WAFWebACLActivatedRule
      • Stratosphere.ResourceProperties.WAFWebACLWafAction
      • Stratosphere.ResourceProperties.WAFXssMatchSetFieldToMatch
      • Stratosphere.ResourceProperties.WAFXssMatchSetXssMatchTuple
    • Stratosphere.Resources
      • Stratosphere.Resources.ApiGatewayAccount
      • Stratosphere.Resources.ApiGatewayApiKey
      • Stratosphere.Resources.ApiGatewayAuthorizer
      • Stratosphere.Resources.ApiGatewayBasePathMapping
      • Stratosphere.Resources.ApiGatewayClientCertificate
      • Stratosphere.Resources.ApiGatewayDeployment
      • Stratosphere.Resources.ApiGatewayMethod
      • Stratosphere.Resources.ApiGatewayModel
      • Stratosphere.Resources.ApiGatewayResource
      • Stratosphere.Resources.ApiGatewayRestApi
      • Stratosphere.Resources.ApiGatewayStage
      • Stratosphere.Resources.ApiGatewayUsagePlan
      • Stratosphere.Resources.ApplicationAutoScalingScalableTarget
      • Stratosphere.Resources.ApplicationAutoScalingScalingPolicy
      • Stratosphere.Resources.AutoScalingAutoScalingGroup
      • Stratosphere.Resources.AutoScalingLaunchConfiguration
      • Stratosphere.Resources.AutoScalingLifecycleHook
      • Stratosphere.Resources.AutoScalingScalingPolicy
      • Stratosphere.Resources.AutoScalingScheduledAction
      • Stratosphere.Resources.CertificateManagerCertificate
      • Stratosphere.Resources.CloudFormationCustomResource
      • Stratosphere.Resources.CloudFormationStack
      • Stratosphere.Resources.CloudFormationWaitCondition
      • Stratosphere.Resources.CloudFormationWaitConditionHandle
      • Stratosphere.Resources.CloudFrontDistribution
      • Stratosphere.Resources.CloudTrailTrail
      • Stratosphere.Resources.CloudWatchAlarm
      • Stratosphere.Resources.CodeBuildProject
      • Stratosphere.Resources.CodeCommitRepository
      • Stratosphere.Resources.CodeDeployApplication
      • Stratosphere.Resources.CodeDeployDeploymentConfig
      • Stratosphere.Resources.CodeDeployDeploymentGroup
      • Stratosphere.Resources.CodePipelineCustomActionType
      • Stratosphere.Resources.CodePipelinePipeline
      • Stratosphere.Resources.ConfigConfigRule
      • Stratosphere.Resources.ConfigConfigurationRecorder
      • Stratosphere.Resources.ConfigDeliveryChannel
      • Stratosphere.Resources.DataPipelinePipeline
      • Stratosphere.Resources.DirectoryServiceMicrosoftAD
      • Stratosphere.Resources.DirectoryServiceSimpleAD
      • Stratosphere.Resources.DynamoDBTable
      • Stratosphere.Resources.EC2CustomerGateway
      • Stratosphere.Resources.EC2DHCPOptions
      • Stratosphere.Resources.EC2EIP
      • Stratosphere.Resources.EC2EIPAssociation
      • Stratosphere.Resources.EC2FlowLog
      • Stratosphere.Resources.EC2Host
      • Stratosphere.Resources.EC2Instance
      • Stratosphere.Resources.EC2InternetGateway
      • Stratosphere.Resources.EC2NatGateway
      • Stratosphere.Resources.EC2NetworkAcl
      • Stratosphere.Resources.EC2NetworkAclEntry
      • Stratosphere.Resources.EC2NetworkInterface
      • Stratosphere.Resources.EC2NetworkInterfaceAttachment
      • Stratosphere.Resources.EC2PlacementGroup
      • Stratosphere.Resources.EC2Route
      • Stratosphere.Resources.EC2RouteTable
      • Stratosphere.Resources.EC2SecurityGroup
      • Stratosphere.Resources.EC2SecurityGroupEgress
      • Stratosphere.Resources.EC2SecurityGroupIngress
      • Stratosphere.Resources.EC2SpotFleet
      • Stratosphere.Resources.EC2Subnet
      • Stratosphere.Resources.EC2SubnetCidrBlock
      • Stratosphere.Resources.EC2SubnetNetworkAclAssociation
      • Stratosphere.Resources.EC2SubnetRouteTableAssociation
      • Stratosphere.Resources.EC2VPC
      • Stratosphere.Resources.EC2VPCCidrBlock
      • Stratosphere.Resources.EC2VPCDHCPOptionsAssociation
      • Stratosphere.Resources.EC2VPCEndpoint
      • Stratosphere.Resources.EC2VPCGatewayAttachment
      • Stratosphere.Resources.EC2VPCPeeringConnection
      • Stratosphere.Resources.EC2VPNConnection
      • Stratosphere.Resources.EC2VPNConnectionRoute
      • Stratosphere.Resources.EC2VPNGateway
      • Stratosphere.Resources.EC2VPNGatewayRoutePropagation
      • Stratosphere.Resources.EC2Volume
      • Stratosphere.Resources.EC2VolumeAttachment
      • Stratosphere.Resources.ECRRepository
      • Stratosphere.Resources.ECSCluster
      • Stratosphere.Resources.ECSService
      • Stratosphere.Resources.ECSTaskDefinition
      • Stratosphere.Resources.EFSFileSystem
      • Stratosphere.Resources.EFSMountTarget
      • Stratosphere.Resources.EMRCluster
      • Stratosphere.Resources.EMRInstanceGroupConfig
      • Stratosphere.Resources.EMRStep
      • Stratosphere.Resources.ElastiCacheCacheCluster
      • Stratosphere.Resources.ElastiCacheParameterGroup
      • Stratosphere.Resources.ElastiCacheReplicationGroup
      • Stratosphere.Resources.ElastiCacheSecurityGroup
      • Stratosphere.Resources.ElastiCacheSecurityGroupIngress
      • Stratosphere.Resources.ElastiCacheSubnetGroup
      • Stratosphere.Resources.ElasticBeanstalkApplication
      • Stratosphere.Resources.ElasticBeanstalkApplicationVersion
      • Stratosphere.Resources.ElasticBeanstalkConfigurationTemplate
      • Stratosphere.Resources.ElasticBeanstalkEnvironment
      • Stratosphere.Resources.ElasticLoadBalancingLoadBalancer
      • Stratosphere.Resources.ElasticLoadBalancingV2Listener
      • Stratosphere.Resources.ElasticLoadBalancingV2ListenerRule
      • Stratosphere.Resources.ElasticLoadBalancingV2LoadBalancer
      • Stratosphere.Resources.ElasticLoadBalancingV2TargetGroup
      • Stratosphere.Resources.ElasticsearchDomain
      • Stratosphere.Resources.EventsRule
      • Stratosphere.Resources.GameLiftAlias
      • Stratosphere.Resources.GameLiftBuild
      • Stratosphere.Resources.GameLiftFleet
      • Stratosphere.Resources.IAMAccessKey
      • Stratosphere.Resources.IAMGroup
      • Stratosphere.Resources.IAMInstanceProfile
      • Stratosphere.Resources.IAMManagedPolicy
      • Stratosphere.Resources.IAMPolicy
      • Stratosphere.Resources.IAMRole
      • Stratosphere.Resources.IAMUser
      • Stratosphere.Resources.IAMUserToGroupAddition
      • Stratosphere.Resources.IoTCertificate
      • Stratosphere.Resources.IoTPolicy
      • Stratosphere.Resources.IoTPolicyPrincipalAttachment
      • Stratosphere.Resources.IoTThing
      • Stratosphere.Resources.IoTThingPrincipalAttachment
      • Stratosphere.Resources.IoTTopicRule
      • Stratosphere.Resources.KMSAlias
      • Stratosphere.Resources.KMSKey
      • Stratosphere.Resources.KinesisFirehoseDeliveryStream
      • Stratosphere.Resources.KinesisStream
      • Stratosphere.Resources.LambdaAlias
      • Stratosphere.Resources.LambdaEventSourceMapping
      • Stratosphere.Resources.LambdaFunction
      • Stratosphere.Resources.LambdaPermission
      • Stratosphere.Resources.LambdaVersion
      • Stratosphere.Resources.LogsDestination
      • Stratosphere.Resources.LogsLogGroup
      • Stratosphere.Resources.LogsLogStream
      • Stratosphere.Resources.LogsMetricFilter
      • Stratosphere.Resources.LogsSubscriptionFilter
      • Stratosphere.Resources.OpsWorksApp
      • Stratosphere.Resources.OpsWorksElasticLoadBalancerAttachment
      • Stratosphere.Resources.OpsWorksInstance
      • Stratosphere.Resources.OpsWorksLayer
      • Stratosphere.Resources.OpsWorksStack
      • Stratosphere.Resources.OpsWorksUserProfile
      • Stratosphere.Resources.OpsWorksVolume
      • Stratosphere.Resources.RDSDBCluster
      • Stratosphere.Resources.RDSDBClusterParameterGroup
      • Stratosphere.Resources.RDSDBInstance
      • Stratosphere.Resources.RDSDBParameterGroup
      • Stratosphere.Resources.RDSDBSecurityGroup
      • Stratosphere.Resources.RDSDBSecurityGroupIngress
      • Stratosphere.Resources.RDSDBSubnetGroup
      • Stratosphere.Resources.RDSEventSubscription
      • Stratosphere.Resources.RDSOptionGroup
      • Stratosphere.Resources.RedshiftCluster
      • Stratosphere.Resources.RedshiftClusterParameterGroup
      • Stratosphere.Resources.RedshiftClusterSecurityGroup
      • Stratosphere.Resources.RedshiftClusterSecurityGroupIngress
      • Stratosphere.Resources.RedshiftClusterSubnetGroup
      • Stratosphere.Resources.Route53HealthCheck
      • Stratosphere.Resources.Route53HostedZone
      • Stratosphere.Resources.Route53RecordSet
      • Stratosphere.Resources.Route53RecordSetGroup
      • Stratosphere.Resources.S3Bucket
      • Stratosphere.Resources.S3BucketPolicy
      • Stratosphere.Resources.SDBDomain
      • Stratosphere.Resources.SNSSubscription
      • Stratosphere.Resources.SNSTopic
      • Stratosphere.Resources.SNSTopicPolicy
      • Stratosphere.Resources.SQSQueue
      • Stratosphere.Resources.SQSQueuePolicy
      • Stratosphere.Resources.SSMAssociation
      • Stratosphere.Resources.SSMDocument
      • Stratosphere.Resources.WAFByteMatchSet
      • Stratosphere.Resources.WAFIPSet
      • Stratosphere.Resources.WAFRule
      • Stratosphere.Resources.WAFSizeConstraintSet
      • Stratosphere.Resources.WAFSqlInjectionMatchSet
      • Stratosphere.Resources.WAFWebACL
      • Stratosphere.Resources.WAFXssMatchSet
      • Stratosphere.Resources.WorkSpacesWorkspace
    • Stratosphere.Template
    • Stratosphere.Types
    • Stratosphere.Values

Flags

Manual Flags

NameDescriptionDefault
library-only

Don't compile examples

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1.0, 0.1.1, 0.1.2, 0.1.2.1, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.2.0, 0.2.1, 0.2.2, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.5.0, 0.6.0, 0.7.0, 0.7.1, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.15.0, 0.15.1, 0.15.2, 0.16.0, 0.17.0, 0.18.0, 0.19.0, 0.19.1, 0.20.0, 0.21.0, 0.22.2, 0.22.3, 0.23.0, 0.24.0, 0.24.1, 0.24.2, 0.24.3, 0.24.4, 0.25.0, 0.26.0, 0.26.1, 0.26.2, 0.27.0, 0.28.0, 0.28.1, 0.29.0, 0.29.1, 0.30.0, 0.30.1, 0.31.0, 0.32.0, 0.33.0, 0.34.0, 0.35.0, 0.36.0, 0.37.0, 0.38.0, 0.39.0, 0.40.0, 0.41.0, 0.42.0, 0.43.0, 0.44.0, 0.45.0, 0.46.0, 0.47.0, 0.48.0, 0.49.0, 0.50.0, 0.51.0, 0.52.0, 0.53.0, 0.54.0, 0.55.0, 0.56.0, 0.57.0, 0.58.0, 0.59.0, 0.59.1, 0.60.0
Change log CHANGELOG.md
Dependencies aeson (>=0.11), aeson-pretty (>=0.8), base (>=4.8 && <5), bytestring, hashable, lens (>=4.5), stratosphere, template-haskell (>=2.0), text (>=1.1), unordered-containers (>=0.2) [details]
License MIT
Author
Maintainer David Reaver
Category AWS, Cloud
Home page https://github.com/frontrowed/stratosphere#readme
Bug tracker https://github.com/frontrowed/stratosphere/issues
Source repo head: git clone https://github.com/frontrowed/stratosphere
Uploaded by jdreaver at 2017-03-28T22:22:20Z
Distributions LTSHaskell:0.60.0, NixOS:0.60.0, Stackage:0.60.0
Reverse Dependencies 2 direct, 0 indirect [details]
Executables simple-lambda, s3-copy, rds-master-replica, ec2-with-eip, auto-scaling-group, apigw-lambda-dynamodb
Downloads 51821 total (240 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2021-06-03 [all 2 reports]

Readme for stratosphere-0.4.2

[back to package description]

Stratosphere: AWS CloudFormation in Haskell

Circle CI

AWS CloudFormation is a system that provisions and updates Amazon Web Services (AWS) resources based on declarative templates. Common criticisms of CloudFormation include the use of JSON as the template language and limited error-checking, often only available in the form of run-time errors and stack rollbacks. By wrapping templates in Haskell, we are able to easily construct them and help ensure correctness.

The goals of stratosphere are to:

  • Build a Haskell EDSL to specify CloudFormation templates. Since it is embedded in Haskell, it is type-checked and generally much easier to work with than raw JSON.
  • Have a simple checking/linting system outside of the types that can find common errors in templates.
  • Be able to also read valid CloudFormation JSON templates so they can be type-checked. This also gives us free integration tests by using the huge amount of example templates available in the AWS docs.

Example

Here is an example of a Template that creates an EC2 instance, along with the JSON output:

{-# LANGUAGE OverloadedLists #-}
{-# LANGUAGE OverloadedStrings #-}

module Main where

import qualified Data.ByteString.Lazy.Char8 as B
import Stratosphere

main :: IO ()
main = B.putStrLn $ encodeTemplate instanceTemplate

instanceTemplate :: Template
instanceTemplate =
  template
  [ resource "EC2Instance" (
    EC2InstanceProperties $
    ec2Instance
    "ami-22111148"
    & eciKeyName ?~ (Ref "KeyName")
    )
    & deletionPolicy ?~ Retain
  ]
  & description ?~ "Sample template"
  & parameters ?~
  [ parameter "KeyName" "AWS::EC2::KeyPair::KeyName"
    & description ?~ "Name of an existing EC2 KeyPair to enable SSH access to the instance"
    & constraintDescription ?~ "Must be the name of an existing EC2 KeyPair."
  ]
{
  "Description": "Sample template",
  "Parameters": {
    "KeyName": {
      "Description": "Name of an existing EC2 KeyPair to enable SSH access to the instance",
      "ConstraintDescription": "Must be the name of an existing EC2 KeyPair.",
      "Type": "AWS::EC2::KeyPair::KeyName"
    }
  },
  "Resources": {
    "EC2Instance": {
      "DeletionPolicy": "Retain",
      "Type": "AWS::EC2::Instance",
      "Properties": {
        "KeyName": {
          "Ref": "KeyName"
        },
        "ImageId": "ami-22111148"
      }
    }
  }
}

Please see the examples directory for more in-depth examples.

Value Types

CloudFormation resource parameters can be literals (strings, integers, etc), references to another resource or a Parameter, or the result of some function call. We encapsulate all of these possibilities in the Val a type.

We recommend using the OverloadedStrings extension to reduce the number of Literals you have to use.

Note that CloudFormation represents numbers and bools in JSON as strings, so we had to some types called Integer' and Bool' to override the aeson instances. In a future version we plan on using our own JSON encoder/decoder to get around this.

Lenses

Almost every CloudFormation resource has a handful of required arguments, and many more optional arguments. Each resource is represented as a record type with optional arguments wrapped in Maybe. Each resource also comes with a constructor that accepts required resource parameters as arguments. This allows the user to succinctly specify the resource parameters they actually use without adding too much noise to their code.

To specify optional arguments, we recommend using the lens operators & and ?~. In the example above, the ec2Instance function takes the AMI as an argument, since it is required by the EC2Instance resource type. Then, the optional EC2 key name is specified using the & and ?~ lens operators.

This approach is very similar to the approach taken by the amazonka library. See this blog post for an explanation.

Auto-generation

All of the resources and resource properties are auto-generated from a JSON schema file and are placed in library-gen/. The gen/ directory contains the auto-generator code and the JSON model file. We include the library-gen/ directory in git so the build process is simplified. To build library-gen from scratch and then build all of stratosphere, just run the very short build.sh script. You can pass stack args to the script too, so run ./build.sh --fast to build the library without optimization. This is useful for development.

In the future, it would be great to not have to include the auto-generated code in git.

Contributing

Feel free to raise any issues, or even just make suggestions, by filing a Github issue.

Future Work

  • Implement basic checker for things like undefined Refs and duplicate field names. This stuff would be too unwieldy to do in types, and performing a checking pass over a template should be pretty straightforward.
  • Use a custom JSON encoder so the templates look a little more idiomatic. We also create a lot of empty whitespace and newlines using aeson-pretty. There are limits on the size of CloudFormation templates, and we want readable output without hitting the limits. Also, we have some newtypes that just exist to override aeson instances, and we could get rid of those.
  • Use a custom JSON decoder with useful error messages. Although we don't use them, we have implemented FromJSON instances for everything. Theoretically, stratosphere could be used as a checker/linter for existing JSON CloudFormation templates.