Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeS3BucketName ¶ added in v0.6.3
SanitizeS3BucketName returns a valid S3 bucket name for a given app name. In addition to any sanitization, this will append a suffix of "-payloads". When we actually use these bucket names, we'll prefix them with the 12-digit AWS account id; this method assumes that for its checks.
The rules we're checking for ar at https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html.
Some of those (especially the ones to do with prefixes and suffixes) we get for free because of the AWS account id and "-payloads" suffix. Besides those, we also do not check for the following:
- "Bucket names must be unique across all AWS accounts in all the AWS Regions within a partition": it's impossible to check this without connecting to AWS, which we don't want to here.
- "A bucket name cannot be used by another AWS account in the same partition until the bucket is deleted": isn't this the same as the previous rule?
Types ¶
type CloudfrontDistribution ¶
type CloudfrontDistribution struct {
Id string
Origins []core.ResourceKey
DefaultRootObject string
}
func CreateCloudfrontDistribution ¶
func CreateCloudfrontDistribution(resources []core.CloudResource) *CloudfrontDistribution
Click to show internal directories.
Click to hide internal directories.