common

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArnRegion

func ArnRegion(arn string) string

func FailurePhysicalResourceId

func FailurePhysicalResourceId(event cfn.Event) string

The most important data in the error response to cloudformation is the `PhysicalResourceId` that is stored by cloudformation to identify the resources that have been created. The `PhysicalResourceId` must always be created even in case of creation failure as cloudformation generates a random one if non is supplied. If a resource needs many API calls to be completely generated, it is very important to send the correct `PhysicalResourceId` even in case of failure as cloudformation will send a delete event when the stack is deleted respectively rollbacked.

It is important to create a failure id for graceful NOP when deleting a resource that has failed to create. To gracefully handle these cases, we define the following helper functions.

func IsFailurePhysicalResourceId

func IsFailurePhysicalResourceId(id string) bool

func IsSameRegion

func IsSameRegion(event cfn.Event, oldRegion, region string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL