Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Efs awssdkv2 migration #38017

Merged
merged 29 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
99a219c
efs: Migrate to AWS SDK v2
mattburgess Jun 17, 2024
bb700a3
make awssdkpatch-apply
mattburgess Jun 17, 2024
ccc0dbf
make gen
mattburgess Jun 17, 2024
e917ff3
d/efs_access_point, r/efs_access_point: Migrate to AWS SDK v2
mattburgess Jun 17, 2024
c822da6
d/efs_access_points: Migrate to AWS SDK v2
mattburgess Jun 17, 2024
2b126a5
r/efs_backup_policy: Migrate to AWS SDK v2
mattburgess Jun 17, 2024
bc8f711
d/ecs_file_system: Migrate to AWS SDK v2
mattburgess Jun 17, 2024
087097a
r/efs_file_system_policy: Migrate to AWS SDK v2
mattburgess Jun 17, 2024
75112ad
r/efs_file_system: Migrate to AWS SDK v2
mattburgess Jun 17, 2024
412ae31
d/efs_mount_target, r/efs_mount_target: Migrate to AWS SDK v2
mattburgess Jun 17, 2024
b109680
r/ecs_replication_configuration: Migrate to AWS SDK v2
mattburgess Jun 17, 2024
3c074fb
efs: Last AWS SDK v2 migration pieces
mattburgess Jun 17, 2024
161f9f1
Merge branch 'main' into HEAD
ewbankkit Jul 3, 2024
1db2dbb
r/aws_efs_access_point: Reduce visibility.
ewbankkit Jul 3, 2024
d59bf83
d/aws_efs_access_point: Reduce visibility.
ewbankkit Jul 3, 2024
319e053
r/aws_efs_file_system: Reduce visibility.
ewbankkit Jul 5, 2024
f284465
d/aws_efs_file_system: Reduce visibility.
ewbankkit Jul 5, 2024
7febd9d
r/aws_efs_file_system_policy: Reduce visibility.
ewbankkit Jul 5, 2024
70f6f47
r/aws_efs_backup_policy: Reduce visibility.
ewbankkit Jul 5, 2024
01aa966
d/aws_efs_access_points: Reduce visibility.
ewbankkit Jul 5, 2024
47c0c2a
r/aws_efs_mount_target: Reduce visibility.
ewbankkit Jul 5, 2024
27f4d0b
d/aws_efs_mount_target: Reduce visibility.
ewbankkit Jul 5, 2024
edaba13
r/aws_efs_replication_configuration: Reduce visibility.
ewbankkit Jul 5, 2024
0df968c
efs: Tidy up sweepers.
ewbankkit Jul 5, 2024
c7915af
d/aws_efs_access_point: Mark 'tags' as Computed.
ewbankkit Jul 5, 2024
4efc443
Fix 'TestAccEFSFileSystemDataSource_nonExistent_tags'.
ewbankkit Jul 5, 2024
d390637
efs: Tweak acceptance test configurations.
ewbankkit Jul 5, 2024
5f13405
r/aws_efs_backup_policy: Fix Delete.
ewbankkit Jul 5, 2024
81b7783
r/aws_efs_replication_configuration: Pass API options all the way down.
ewbankkit Jul 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/ecr v1.30.1
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.25.1
github.com/aws/aws-sdk-go-v2/service/ecs v1.44.1
github.com/aws/aws-sdk-go-v2/service/efs v1.31.1
github.com/aws/aws-sdk-go-v2/service/eks v1.46.0
github.com/aws/aws-sdk-go-v2/service/elasticache v1.40.1
github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk v1.25.1
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.25.1 h1:54/7zy+oA2ep9UzWjAtcca
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.25.1/go.mod h1:2UjSvHCwdRoPF17osaRvfBXuo32KPSvTlGMii5YbjyU=
github.com/aws/aws-sdk-go-v2/service/ecs v1.44.1 h1:Kc0ubjRMW0nq5Tu2LDhQBOLzP2/oUceZNP0NUfU+MQo=
github.com/aws/aws-sdk-go-v2/service/ecs v1.44.1/go.mod h1:+l39x/ffnRnFeIAe3OzWX6LTv/fkLyo5zNehFgMEwzQ=
github.com/aws/aws-sdk-go-v2/service/efs v1.31.1 h1:cvGFfU0+Wa04EvZ7tjOU5Lfd2RpN5wc9aLIgTTnA1EA=
github.com/aws/aws-sdk-go-v2/service/efs v1.31.1/go.mod h1:KoCfH5bEaBQ2WLZim2slIgtCL1agZ2f9iN/zQBJmxr8=
github.com/aws/aws-sdk-go-v2/service/eks v1.46.0 h1:ZPhHHZtAjVohIGIVjXECPfljcPOQ+hjZ1IpgvjPTJ50=
github.com/aws/aws-sdk-go-v2/service/eks v1.46.0/go.mod h1:p4Yk0zfWEoLvvQ4V6XZrTmAAPzcevNnEsbUR82NAY0w=
github.com/aws/aws-sdk-go-v2/service/elasticache v1.40.1 h1:yJMmaQ3jTpCrsXl0lxQUsvlMZA4/B8ia+99eSbIBjAA=
Expand Down
11 changes: 0 additions & 11 deletions internal/conns/awsclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
aws_sdkv1 "github.com/aws/aws-sdk-go/aws"
session_sdkv1 "github.com/aws/aws-sdk-go/aws/session"
directoryservice_sdkv1 "github.com/aws/aws-sdk-go/service/directoryservice"
efs_sdkv1 "github.com/aws/aws-sdk-go/service/efs"
opsworks_sdkv1 "github.com/aws/aws-sdk-go/service/opsworks"
rds_sdkv1 "github.com/aws/aws-sdk-go/service/rds"
baselogging "github.com/hashicorp/aws-sdk-go-base/v2/logging"
Expand Down Expand Up @@ -74,16 +73,6 @@ func (c *AWSClient) DSConnForRegion(ctx context.Context, region string) *directo
return directoryservice_sdkv1.New(c.session, aws_sdkv1.NewConfig().WithRegion(region))
}

// EFSConnForRegion returns an AWS SDK For Go v1 EFS API client for the specified AWS Region.
// If the specified region is not the default a new "simple" client is created.
// This new client does not use any configured endpoint override.
func (c *AWSClient) EFSConnForRegion(ctx context.Context, region string) *efs_sdkv1.EFS {
if region == c.Region {
return c.EFSConn(ctx)
}
return efs_sdkv1.New(c.session, aws_sdkv1.NewConfig().WithRegion(region))
}

// OpsWorksConnForRegion returns an AWS SDK For Go v1 OpsWorks API client for the specified AWS Region.
// If the specified region is not the default a new "simple" client is created.
// This new client does not use any configured endpoint override.
Expand Down
6 changes: 3 additions & 3 deletions internal/conns/awsclient_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading