Documentation
¶
Index ¶
- Variables
- func GetAttribute(name string, r *terraform.Resource) (string, error)
- func HasAttributes(attributes []string, terraformType string, ...) (map[string]bool, error)
- func IsSupportedType(s string) bool
- func IsType(s string) bool
- func MatchSupportedTypes(globPattern string) ([]string, error)
- func PrintResources(resources []terraform.Resource, hasAttrs map[string]bool, attributes []string)
- func PrintResourcesAsJSON(resources []terraform.Resource, hasAttrs map[string]bool, attributes []string)
- func SupportsTags(s string) bool
- type UpdatedResources
Constants ¶
This section is empty.
Variables ¶
var IDs = map[string]string{}/* 469 elements not displayed */
IDs stores the name of the struct field of the AWS API used as ID for each Terraform resource type.
var Services = map[string]string{}/* 729 elements not displayed */
Services contains the name of the AWS service that each resource type belongs to.
var SupportedTypes = []string{}/* 297 elements not displayed */
SupportedTypes is a list of all resource types currently supported by awsls.
var Types = []string{}/* 730 elements not displayed */
Types is a list of all resource types implemented by the Terraform AWS Provider.
var TypesWithTags = []string{}/* 345 elements not displayed */
TypesWithTags is a list of all resource types that support tags.
Functions ¶
func GetAttribute ¶
GetAttribute returns any Terraform attribute of a resource by name.
func HasAttributes ¶
func HasAttributes(attributes []string, terraformType string, provider *provider.TerraformProvider) (map[string]bool, error)
HasAttributes returns only the attributes that the given Terraform resource type supports out of a given list of attributes.
func IsSupportedType ¶
IsSupportedType returns true if the given string is an awsls supported resource type.
func MatchSupportedTypes ¶
MatchResourceTypes returns all by awsls supported resource types that match the given glob pattern.
func PrintResources ¶ added in v0.8.2
func PrintResourcesAsJSON ¶ added in v0.10.0
func SupportsTags ¶
SupportsTags returns true if the given resource type supports tags.
Types ¶
type UpdatedResources ¶ added in v0.8.2
UpdatedResources contains resources which Terraform state has been updated. Failed updates are logged in the Errors array.
func ListInMultipleAccountsAndRegions ¶ added in v0.8.2
func ListInMultipleAccountsAndRegions(ctx context.Context, rType string, hasAttrs map[string]bool, clients map[aws.ClientKey]aws.Client, providers map[aws.ClientKey]provider.TerraformProvider) UpdatedResources
ListInMultipleAccountsAndRegions lists resources of a given resource type in parallel for multiple accounts and regions and updates the resources' Terraform state.