awsv4upgrade

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AWSS3BucketACLResourceFilter added in v0.2.0

func AWSS3BucketACLResourceFilter(inFile *tfwrite.File, resource *tfwrite.Resource) (*tfwrite.File, error)

AWSS3BucketACLResourceFilter is a filter implementation for upgrading the acl argument of aws_s3_bucket. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#acl-argument

func AWSS3BucketAccelerationStatusResourceFilter added in v0.2.0

func AWSS3BucketAccelerationStatusResourceFilter(inFile *tfwrite.File, resource *tfwrite.Resource) (*tfwrite.File, error)

AWSS3BucketAccelerationStatusResourceFilter is a filter implementation for upgrading the acceleration_status argument of aws_s3_bucket. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#acceleration_status-argument

func AWSS3BucketCorsRuleResourceFilter added in v0.2.0

func AWSS3BucketCorsRuleResourceFilter(inFile *tfwrite.File, resource *tfwrite.Resource) (*tfwrite.File, error)

AWSS3BucketCorsRuleResourceFilter is a filter implementation for upgrading the cors_rule argument of aws_s3_bucket. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#cors_rule-argument

func AWSS3BucketGrantResourceFilter added in v0.2.0

func AWSS3BucketGrantResourceFilter(inFile *tfwrite.File, resource *tfwrite.Resource) (*tfwrite.File, error)

AWSS3BucketGrantResourceFilter is a filter implementation for upgrading the grant argument of aws_s3_bucket. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#grant-argument

func AWSS3BucketLifecycleRuleResourceFilter added in v0.2.0

func AWSS3BucketLifecycleRuleResourceFilter(inFile *tfwrite.File, resource *tfwrite.Resource) (*tfwrite.File, error)

AWSS3BucketLifecycleRuleResourceFilter is a filter implementation for upgrading the lifecycle_rule argument of aws_s3_bucket. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#lifecycle_rule-argument

func AWSS3BucketLoggingResourceFilter added in v0.2.0

func AWSS3BucketLoggingResourceFilter(inFile *tfwrite.File, resource *tfwrite.Resource) (*tfwrite.File, error)

AWSS3BucketLoggingResourceFilter is a filter implementation for upgrading the logging argument of aws_s3_bucket. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#logging-argument

func AWSS3BucketObjectLockConfigurationResourceFilter added in v0.2.0

func AWSS3BucketObjectLockConfigurationResourceFilter(inFile *tfwrite.File, resource *tfwrite.Resource) (*tfwrite.File, error)

AWSS3BucketObjectLockConfigurationResourceFilter is a filter implementation for upgrading the object_lock_configuration argument of aws_s3_bucket. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#object_lock_configuration-rule-argument

func AWSS3BucketPolicyResourceFilter added in v0.2.0

func AWSS3BucketPolicyResourceFilter(inFile *tfwrite.File, resource *tfwrite.Resource) (*tfwrite.File, error)

AWSS3BucketPolicyResourceFilter is a filter implementation for upgrading the policy argument of aws_s3_bucket. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#policy-argument

func AWSS3BucketReplicationConfigurationResourceFilter added in v0.2.0

func AWSS3BucketReplicationConfigurationResourceFilter(inFile *tfwrite.File, resource *tfwrite.Resource) (*tfwrite.File, error)

AWSS3BucketReplicationConfigurationResourceFilter is a filter implementation for upgrading the replication_configuration argument of aws_s3_bucket. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#replication_configuration-argument

func AWSS3BucketRequestPayerResourceFilter added in v0.2.0

func AWSS3BucketRequestPayerResourceFilter(inFile *tfwrite.File, resource *tfwrite.Resource) (*tfwrite.File, error)

AWSS3BucketRequestPayerResourceFilter is a filter implementation for upgrading the request_payer argument of aws_s3_bucket. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#request_payer-argument

func AWSS3BucketServerSideEncryptionConfigurationResourceFilter added in v0.2.0

func AWSS3BucketServerSideEncryptionConfigurationResourceFilter(inFile *tfwrite.File, resource *tfwrite.Resource) (*tfwrite.File, error)

AWSS3BucketServerSideEncryptionConfigurationResourceFilter is a filter implementation for upgrading the server_side_encryption_configuration argument of aws_s3_bucket. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#server_side_encryption_configuration-argument

func AWSS3BucketVersioningResourceFilter added in v0.2.0

func AWSS3BucketVersioningResourceFilter(inFile *tfwrite.File, resource *tfwrite.Resource) (*tfwrite.File, error)

AWSS3BucketVersioningResourceFilter is a filter implementation for upgrading the versioning argument of aws_s3_bucket. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#versioning-argument

func AWSS3BucketWebsiteBlockFilter added in v0.2.1

func AWSS3BucketWebsiteBlockFilter(inFile *tfwrite.File, block tfwrite.Block) (*tfwrite.File, error)

AWSS3BucketWebsiteBlockFilter is a filter implementation for upgrading the website argument of aws_s3_bucket and renames all references for the website_domain and website_endpoint attributes to the new splitted resource. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#website-website_domain-and-website_endpoint-arguments

func AWSS3ForcePathStyleProviderFilter added in v0.2.0

func AWSS3ForcePathStyleProviderFilter(inFile *tfwrite.File, provider *tfwrite.Provider) (*tfwrite.File, error)

AWSS3ForcePathStyleProviderFilter is a filter implementation for upgrading the s3_force_path_style argument of provider aws block. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#s3_use_path_style

func NewAWSS3BucketFilter

func NewAWSS3BucketFilter() tfeditor.BlockFilter

NewAWSS3BucketFilter creates a new instance of AWSS3BucketFilter.

func NewAllFilter

func NewAllFilter() editor.Filter

NewAllFilter creates a new instance of AllFilter.

func NewProviderAWSFilter added in v0.2.0

func NewProviderAWSFilter() tfeditor.BlockFilter

NewProviderAWSFilter creates a new instance of ProviderAWSFilter.

Types

type AWSS3BucketFilter

type AWSS3BucketFilter struct {
	// contains filtered or unexported fields
}

AWSS3BucketFilter is a filter implementation for upgrading arguments of aws_s3_bucket to AWS provider v4. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#s3-bucket-refactor

func (*AWSS3BucketFilter) BlockFilter added in v0.2.0

func (f *AWSS3BucketFilter) BlockFilter(inFile *tfwrite.File, block tfwrite.Block) (*tfwrite.File, error)

BlockFilter upgrades arguments of aws_s3_bucket to AWS provider v4. Some rules have not been implemented yet.

type AllFilter

type AllFilter struct {
}

AllFilter is a filter implementation for upgrading configurations to AWS provider v4. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade

func (*AllFilter) Filter

func (f *AllFilter) Filter(inFile *hclwrite.File) (*hclwrite.File, error)

Filter upgrades configurations to AWS provider v4.

type ProviderAWSFilter added in v0.2.0

type ProviderAWSFilter struct {
	// contains filtered or unexported fields
}

ProviderAWSFilter is a filter implementation for upgrading arguments of provider aws block to v4. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/guides/version-4-upgrade#new-provider-arguments

func (*ProviderAWSFilter) BlockFilter added in v0.2.0

func (f *ProviderAWSFilter) BlockFilter(inFile *tfwrite.File, block tfwrite.Block) (*tfwrite.File, error)

BlockFilter upgrades arguments of provider aws block to v4. Some rules have not been implemented yet.

Jump to

Keyboard shortcuts

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