-
Notifications
You must be signed in to change notification settings - Fork 158
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
upstream v5.55.0 #4102
upstream v5.55.0 #4102
Changes from all commits
a343d51
1a32865
229e9d7
a83db6a
e2758da
e2c5edf
ab41a4a
3d74d72
9bd3763
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,10 @@ Subject: [PATCH] Disable retry for KMS access denied in lambda | |
|
||
diff --git a/internal/service/lambda/service_package_extra.go b/internal/service/lambda/service_package_extra.go | ||
new file mode 100644 | ||
index 0000000000..4625f9e31c | ||
index 0000000000..ffd7fa9728 | ||
--- /dev/null | ||
+++ b/internal/service/lambda/service_package_extra.go | ||
@@ -0,0 +1,48 @@ | ||
@@ -0,0 +1,41 @@ | ||
+package lambda | ||
+ | ||
+import ( | ||
|
@@ -19,7 +19,6 @@ index 0000000000..4625f9e31c | |
+ retry_sdkv2 "github.com/aws/aws-sdk-go-v2/aws/retry" | ||
+ lambda_sdkv2 "github.com/aws/aws-sdk-go-v2/service/lambda" | ||
+ tfawserr_sdkv2 "github.com/hashicorp/aws-sdk-go-base/v2/tfawserr" | ||
+ "github.com/hashicorp/terraform-plugin-log/tflog" | ||
+ "github.com/hashicorp/terraform-provider-aws/internal/conns" | ||
+ "github.com/hashicorp/terraform-provider-aws/names" | ||
+) | ||
|
@@ -43,71 +42,42 @@ index 0000000000..4625f9e31c | |
+ } | ||
+ return aws_sdkv2.UnknownTernary // Delegate | ||
+ }) | ||
+ return lambda_sdkv2.NewFromConfig(cfg, func(o *lambda_sdkv2.Options) { | ||
+ if endpoint := config[names.AttrEndpoint].(string); endpoint != "" { | ||
+ tflog.Debug(ctx, "setting endpoint", map[string]any{ | ||
+ "tf_aws.endpoint": endpoint, | ||
+ }) | ||
+ o.BaseEndpoint = aws_sdkv2.String(endpoint) | ||
+ | ||
+ if o.EndpointOptions.UseFIPSEndpoint == aws_sdkv2.FIPSEndpointStateEnabled { | ||
+ tflog.Debug(ctx, "endpoint set, ignoring UseFIPSEndpoint setting") | ||
+ o.EndpointOptions.UseFIPSEndpoint = aws_sdkv2.FIPSEndpointStateDisabled | ||
+ } | ||
+ } | ||
+ o.Retryer = conns.AddIsErrorRetryables(cfg.Retryer().(aws_sdkv2.RetryerV2), retry) | ||
+ }), nil | ||
+ return lambda_sdkv2.NewFromConfig(cfg, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's multiple similar changes to patches in this PR. |
||
+ lambda_sdkv2.WithEndpointResolverV2(newEndpointResolverSDKv2()), | ||
+ withBaseEndpoint(config[names.AttrEndpoint].(string)), | ||
+ func(o *lambda_sdkv2.Options) { | ||
+ o.Retryer = conns.AddIsErrorRetryables(cfg.Retryer().(aws_sdkv2.RetryerV2), retry) | ||
+ }, | ||
+ ), nil | ||
+} | ||
diff --git a/internal/service/lambda/service_package_gen.go b/internal/service/lambda/service_package_gen.go | ||
index 6b8ecf2c57..72d8c48672 100644 | ||
index 95c6c04302..1ebeaf2126 100644 | ||
--- a/internal/service/lambda/service_package_gen.go | ||
+++ b/internal/service/lambda/service_package_gen.go | ||
@@ -5,9 +5,6 @@ package lambda | ||
@@ -5,8 +5,6 @@ package lambda | ||
import ( | ||
"context" | ||
|
||
- aws_sdkv2 "github.com/aws/aws-sdk-go-v2/aws" | ||
- lambda_sdkv2 "github.com/aws/aws-sdk-go-v2/service/lambda" | ||
- "github.com/hashicorp/terraform-plugin-log/tflog" | ||
"github.com/hashicorp/terraform-provider-aws/internal/conns" | ||
"github.com/hashicorp/terraform-provider-aws/internal/types" | ||
"github.com/hashicorp/terraform-provider-aws/names" | ||
@@ -135,25 +132,6 @@ func (p *servicePackage) ServicePackageName() string { | ||
@@ -134,16 +132,6 @@ func (p *servicePackage) ServicePackageName() string { | ||
return names.Lambda | ||
} | ||
|
||
-// NewClient returns a new AWS SDK for Go v2 client for this service package's AWS API. | ||
-func (p *servicePackage) NewClient(ctx context.Context, config map[string]any) (*lambda_sdkv2.Client, error) { | ||
- cfg := *(config["aws_sdkv2_config"].(*aws_sdkv2.Config)) | ||
- | ||
- return lambda_sdkv2.NewFromConfig(cfg, func(o *lambda_sdkv2.Options) { | ||
- if endpoint := config[names.AttrEndpoint].(string); endpoint != "" { | ||
- tflog.Debug(ctx, "setting endpoint", map[string]any{ | ||
- "tf_aws.endpoint": endpoint, | ||
- }) | ||
- o.BaseEndpoint = aws_sdkv2.String(endpoint) | ||
- | ||
- if o.EndpointOptions.UseFIPSEndpoint == aws_sdkv2.FIPSEndpointStateEnabled { | ||
- tflog.Debug(ctx, "endpoint set, ignoring UseFIPSEndpoint setting") | ||
- o.EndpointOptions.UseFIPSEndpoint = aws_sdkv2.FIPSEndpointStateDisabled | ||
- } | ||
- } | ||
- }), nil | ||
- return lambda_sdkv2.NewFromConfig(cfg, | ||
- lambda_sdkv2.WithEndpointResolverV2(newEndpointResolverSDKv2()), | ||
- withBaseEndpoint(config[names.AttrEndpoint].(string)), | ||
- ), nil | ||
-} | ||
- | ||
func ServicePackage(ctx context.Context) conns.ServicePackage { | ||
return &servicePackage{} | ||
} | ||
diff --git a/names/data/names_data.csv b/names/data/names_data.csv | ||
index e36b7a9a0c..ebe0f7ed17 100644 | ||
--- a/names/data/names_data.csv | ||
+++ b/names/data/names_data.csv | ||
@@ -218,7 +218,7 @@ kinesis-video-media,kinesisvideomedia,kinesisvideomedia,kinesisvideomedia,,kines | ||
kinesis-video-signaling,kinesisvideosignaling,kinesisvideosignalingchannels,kinesisvideosignaling,,kinesisvideosignaling,,kinesisvideosignalingchannels,KinesisVideoSignaling,KinesisVideoSignalingChannels,,1,,,aws_kinesisvideosignaling_,,kinesisvideosignaling_,Kinesis Video Signaling,Amazon,,x,,,,,Kinesis Video Signaling,,,, | ||
kms,kms,kms,kms,,kms,,,KMS,KMS,,,2,,aws_kms_,,kms_,KMS (Key Management),AWS,,,,,,,KMS,ListKeys,,, | ||
lakeformation,lakeformation,lakeformation,lakeformation,,lakeformation,,,LakeFormation,LakeFormation,,,2,,aws_lakeformation_,,lakeformation_,Lake Formation,AWS,,,,,,,LakeFormation,ListResources,,, | ||
-lambda,lambda,lambda,lambda,,lambda,,,Lambda,Lambda,,,2,,aws_lambda_,,lambda_,Lambda,AWS,,,,,,,Lambda,ListFunctions,,, | ||
+lambda,lambda,lambda,lambda,,lambda,,,Lambda,Lambda,x,,2,,aws_lambda_,,lambda_,Lambda,AWS,,,,,,,Lambda,ListFunctions,,, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wish GitHub knew how to display CSV diffs properly.. This is terrible. |
||
launch-wizard,launchwizard,launchwizard,launchwizard,,launchwizard,,,LaunchWizard,LaunchWizard,,,2,,aws_launchwizard_,,launchwizard_,Launch Wizard,AWS,,,,,,,Launch Wizard,ListWorkloads,,, | ||
lex-models,lexmodels,lexmodelbuildingservice,lexmodelbuildingservice,,lexmodels,,lexmodelbuilding;lexmodelbuildingservice;lex,LexModels,LexModelBuildingService,,1,,aws_lex_,aws_lexmodels_,,lex_,Lex Model Building,Amazon,,,,,,,Lex Model Building Service,GetBots,,, | ||
lexv2-models,lexv2models,lexmodelsv2,lexmodelsv2,,lexv2models,,lexmodelsv2,LexV2Models,LexModelsV2,,,2,,aws_lexv2models_,,lexv2models_,Lex V2 Models,Amazon,,,,,,,Lex Models V2,ListBots,,, |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Florian Stadler <[email protected]> | ||
Date: Mon, 24 Jun 2024 12:21:45 +0200 | ||
Subject: [PATCH] Fix tags_all Computed for PF resources | ||
|
||
|
||
diff --git a/internal/service/drs/replication_configuration_template.go b/internal/service/drs/replication_configuration_template.go | ||
index 500e1a1947..3691471e73 100644 | ||
--- a/internal/service/drs/replication_configuration_template.go | ||
+++ b/internal/service/drs/replication_configuration_template.go | ||
@@ -100,7 +100,7 @@ func (r *replicationConfigurationTemplateResource) Schema(ctx context.Context, r | ||
|
||
"staging_area_tags": tftags.TagsAttribute(), | ||
names.AttrTags: tftags.TagsAttribute(), | ||
- names.AttrTagsAll: tftags.TagsAttributeComputedOnly(), | ||
+ names.AttrTagsAll: tftags.TagsAttribute(), | ||
|
||
"use_dedicated_replication_server": schema.BoolAttribute{ | ||
Required: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit tedious but we could move this from a patch some Go code running on provider init. Fewer patches, less busywork.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a ticket for this already?