Skip to content

Commit 4f0030e

Browse files
committed
Merge branch 'master' into v7-resolve-conflicts
2 parents 57308b7 + a2b15e7 commit 4f0030e

File tree

50 files changed

+2421
-176
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2421
-176
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ git branch upstream-v5.60.0 && git checkout upstream-v5.60.0
6262
# in ./rebase finish the Git rebase and resolve conflicts
6363
(cd ./upstream && go build ./...) # verify everything builds
6464
# add commits as needed to make it build
65-
./scripts/upstream.sh format_patches
65+
./scripts/upstream.sh check_in
6666
git add ./patches && git commit -m "Update patches for v5.60.0"
6767
(cd upstream && git reset --hard v5.60.0)
6868
git add ./upstream && git commit -m "Move upstream to v5.60.0"

examples/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/pulumi/pulumi-aws/examples/v7
33
go 1.24.4
44

55
require (
6-
github.com/aws/aws-sdk-go v1.55.6
6+
github.com/aws/aws-sdk-go v1.55.7
77
github.com/aws/aws-sdk-go-v2 v1.36.5
88
github.com/aws/aws-sdk-go-v2/config v1.29.17
99
github.com/aws/aws-sdk-go-v2/credentials v1.17.70

examples/minimal_schema_test.go

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Copyright 2016-2024, Pulumi Corporation. All rights reserved.
2+
//go:build nodejs || all
3+
// +build nodejs all
4+
5+
package examples
6+
7+
import (
8+
"bytes"
9+
"encoding/json"
10+
"os"
11+
"os/exec"
12+
"path/filepath"
13+
"testing"
14+
15+
"github.com/pulumi/pulumi/pkg/v3/codegen/schema"
16+
"github.com/pulumi/pulumi/pkg/v3/codegen/testing/utils"
17+
"github.com/stretchr/testify/require"
18+
)
19+
20+
func TestMinimalSchema(t *testing.T) {
21+
var buf bytes.Buffer
22+
schemaSource := filepath.Join("..", "bin", "pulumi-resource-aws")
23+
t.Logf("pulumi package get-schema %s", schemaSource)
24+
cmd := exec.Command("pulumi", "package", "get-schema", schemaSource)
25+
cmd.Env = append(os.Environ(), "PULUMI_AWS_MINIMAL_SCHEMA=true")
26+
cmd.Stdout = &buf
27+
err := cmd.Run()
28+
cmd.Stderr = os.Stderr
29+
if err != nil {
30+
t.Logf("%s", buf.String())
31+
require.NoError(t, err)
32+
}
33+
var packageSpec schema.PackageSpec
34+
err = json.Unmarshal(buf.Bytes(), &packageSpec)
35+
require.NoError(t, err)
36+
t.Logf("Parsed minimal schema")
37+
loader := schema.NewPluginLoader(utils.NewHostWithProviders(t.TempDir()))
38+
_, diags, err := schema.BindSpec(packageSpec, loader, schema.ValidationOptions{AllowDanglingReferences: true})
39+
require.NoError(t, err)
40+
for _, d := range diags {
41+
t.Logf("sev=%v summary: %s\n detail: %s", d.Severity, d.Summary, d.Detail)
42+
}
43+
require.False(t, diags.HasErrors())
44+
t.Logf("Validated minimal schema")
45+
}

patches/0047-Adapt-gamelift-matchmaking-resources.patch

Whitespace-only changes.

patches/0052-Restore-AWS-Go-SDK-v1-session.patch

Whitespace-only changes.

patches/0056-restore-conns-to-awsclient.patch

Whitespace-only changes.

patches/0059-Apply-tags-patches.patch

Whitespace-only changes.

provider/cmd/pulumi-resource-aws/schema.json

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -56340,8 +56340,7 @@
5634056340
},
5634156341
"description": {
5634256342
"type": "string",
56343-
"description": "Description of this egress rule.\n",
56344-
"default": ""
56343+
"description": "Description of this egress rule.\n"
5634556344
},
5634656345
"fromPort": {
5634756346
"type": "integer",
@@ -56386,17 +56385,7 @@
5638656385
"fromPort",
5638756386
"protocol",
5638856387
"toPort"
56389-
],
56390-
"language": {
56391-
"nodejs": {
56392-
"requiredOutputs": [
56393-
"description",
56394-
"fromPort",
56395-
"protocol",
56396-
"toPort"
56397-
]
56398-
}
56399-
}
56388+
]
5640056389
},
5640156390
"aws:ec2/SecurityGroupIngress:SecurityGroupIngress": {
5640256391
"properties": {
@@ -56409,8 +56398,7 @@
5640956398
},
5641056399
"description": {
5641156400
"type": "string",
56412-
"description": "Description of this ingress rule.\n",
56413-
"default": ""
56401+
"description": "Description of this ingress rule.\n"
5641456402
},
5641556403
"fromPort": {
5641656404
"type": "integer",
@@ -56455,17 +56443,7 @@
5645556443
"fromPort",
5645656444
"protocol",
5645756445
"toPort"
56458-
],
56459-
"language": {
56460-
"nodejs": {
56461-
"requiredOutputs": [
56462-
"description",
56463-
"fromPort",
56464-
"protocol",
56465-
"toPort"
56466-
]
56467-
}
56468-
}
56446+
]
5646956447
},
5647056448
"aws:ec2/SpotFleetRequestLaunchSpecification:SpotFleetRequestLaunchSpecification": {
5647156449
"properties": {
@@ -87758,6 +87736,10 @@
8775887736
"name": "MESouth1",
8775987737
"value": "me-south-1"
8776087738
},
87739+
{
87740+
"name": "MXCentral1",
87741+
"value": "mx-central-1"
87742+
},
8776187743
{
8776287744
"name": "SAEast1",
8776387745
"value": "sa-east-1"

provider/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ replace github.com/hashicorp/terraform-plugin-log => github.com/gdavison/terrafo
3232
replace (
3333
github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraform-plugin-sdk/v2 v2.0.0-20250530111747-935112552988
3434
github.com/hashicorp/terraform-provider-aws => ../upstream
35-
github.com/hashicorp/vault => github.com/hashicorp/vault v1.18.1
35+
github.com/hashicorp/vault => github.com/hashicorp/vault v1.19.3
3636
)
3737

3838
require (

provider/resources.go

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,6 +1352,12 @@ func ProviderFromMeta(metaInfo *tfbridge.MetadataInfo) *tfbridge.ProviderInfo {
13521352
},
13531353
},
13541354
},
1355+
"aws_backup_restore_testing_plan": {
1356+
Tok: awsResource(backupMod, "RestoreTestingPlan"),
1357+
Fields: map[string]*tfbridge.SchemaInfo{
1358+
"name": tfbridge.AutoName("name", 255, "_"),
1359+
},
1360+
},
13551361
// Batch
13561362
"aws_batch_compute_environment": batch.ComputeEnvironment(awsResource(batchMod, "ComputeEnvironment"), tfbridge.GetLogger),
13571363
"aws_batch_job_definition": {Tok: awsResource(batchMod, "JobDefinition")},
@@ -2002,19 +2008,9 @@ func ProviderFromMeta(metaInfo *tfbridge.MetadataInfo) *tfbridge.ProviderInfo {
20022008
// Use "ingress" instead of "ingresses" to match AWS APIs
20032009
"ingress": {
20042010
Name: "ingress",
2005-
Elem: &tfbridge.SchemaInfo{
2006-
Fields: map[string]*tfbridge.SchemaInfo{
2007-
"description": {Default: &info.Default{Value: ""}},
2008-
},
2009-
},
20102011
},
20112012
"egress": {
20122013
Name: "egress",
2013-
Elem: &tfbridge.SchemaInfo{
2014-
Fields: map[string]*tfbridge.SchemaInfo{
2015-
"description": {Default: &info.Default{Value: ""}},
2016-
},
2017-
},
20182014
},
20192015
},
20202016
},
@@ -2071,7 +2067,7 @@ func ProviderFromMeta(metaInfo *tfbridge.MetadataInfo) *tfbridge.ProviderInfo {
20712067
},
20722068
},
20732069
"aws_default_vpc": {Tok: awsResource(ec2Mod, "DefaultVpc")},
2074-
"aws_vpc": {Tok: awsResource(ec2Mod, "Vpc")},
2070+
"aws_vpc": {Tok: awsResource(ec2Mod, vpcMod)},
20752071
"aws_vpc_endpoint": {Tok: awsResource(ec2Mod, "VpcEndpoint")},
20762072
"aws_vpc_endpoint_connection_notification": {Tok: awsResource(ec2Mod, "VpcEndpointConnectionNotification")},
20772073
"aws_vpc_endpoint_route_table_association": {Tok: awsResource(ec2Mod, "VpcEndpointRouteTableAssociation")},
@@ -3934,20 +3930,20 @@ func ProviderFromMeta(metaInfo *tfbridge.MetadataInfo) *tfbridge.ProviderInfo {
39343930
"aws_waf_xss_match_set": {Tok: awsResource(wafMod, "XssMatchSet")},
39353931
"aws_waf_sql_injection_match_set": {Tok: awsResource(wafMod, "SqlInjectionMatchSet")},
39363932
// Web Application Firewall V2 (WAFv2)
3937-
"aws_wafv2_ip_set": {Tok: awsResource(wafV2Mod, "IpSet")},
3938-
"aws_wafv2_regex_pattern_set": {Tok: awsResource(wafV2Mod, "RegexPatternSet")},
3939-
"aws_wafv2_web_acl_association": {Tok: awsResource(wafV2Mod, "WebAclAssociation")},
3940-
"aws_wafv2_rule_group": {Tok: awsResource(wafV2Mod, "RuleGroup")},
3941-
"aws_wafv2_web_acl": {Tok: awsResource(wafV2Mod, "WebAcl")},
3942-
"aws_wafv2_web_acl_logging_configuration": {Tok: awsResource(wafV2Mod, "WebAclLoggingConfiguration")},
39433933
"aws_wafv2_api_key": {
39443934
Tok: awsResource(wafV2Mod, "ApiKey"),
3945-
Fields: map[string]*info.Schema{
3935+
Fields: map[string]*tfbridge.SchemaInfo{
39463936
"api_key": {
39473937
CSharpName: "Key",
39483938
},
39493939
},
39503940
},
3941+
"aws_wafv2_ip_set": {Tok: awsResource(wafV2Mod, "IpSet")},
3942+
"aws_wafv2_regex_pattern_set": {Tok: awsResource(wafV2Mod, "RegexPatternSet")},
3943+
"aws_wafv2_web_acl_association": {Tok: awsResource(wafV2Mod, "WebAclAssociation")},
3944+
"aws_wafv2_rule_group": {Tok: awsResource(wafV2Mod, "RuleGroup")},
3945+
"aws_wafv2_web_acl": {Tok: awsResource(wafV2Mod, "WebAcl")},
3946+
"aws_wafv2_web_acl_logging_configuration": {Tok: awsResource(wafV2Mod, "WebAclLoggingConfiguration")},
39513947
// Web Application Firewall (WAF) Regional
39523948
"aws_wafregional_byte_match_set": {
39533949
Tok: awsResource(wafregionalMod, "ByteMatchSet"),
@@ -4302,22 +4298,22 @@ func ProviderFromMeta(metaInfo *tfbridge.MetadataInfo) *tfbridge.ProviderInfo {
43024298
ExtraResources: resourceOverlays,
43034299
ExtraTypes: extraTypes,
43044300
DataSources: map[string]*tfbridge.DataSourceInfo{
4301+
// Vpc
43054302
"aws_auditmanager_control": {
43064303
Tok: awsDataSource(auditmanagerMod, "getControl"),
43074304
},
43084305
"aws_auditmanager_framework": {
43094306
Tok: awsDataSource(auditmanagerMod, "getFramework"),
43104307
},
43114308
"aws_vpc_security_group_rule": {
4312-
Tok: awsDataSource("Vpc", "getSecurityGroupRule"),
4309+
Tok: awsDataSource(vpcMod, "getSecurityGroupRule"),
43134310
},
43144311
"aws_vpc_security_group_rules": {
4315-
Tok: awsDataSource("Vpc", "getSecurityGroupRules"),
4312+
Tok: awsDataSource(vpcMod, "getSecurityGroupRules"),
43164313
},
43174314
"aws_vpc_endpoint_associations": {
4318-
Tok: awsDataSource("Vpc", "getEndpointAssociations"),
4315+
Tok: awsDataSource(vpcMod, "getEndpointAssociations"),
43194316
},
4320-
43214317
// AWS
43224318
"aws_arn": {Tok: awsDataSource(awsMod, "getArn")},
43234319
"aws_availability_zone": {Tok: awsDataSource(awsMod, "getAvailabilityZone")},
@@ -5417,19 +5413,19 @@ func ProviderFromMeta(metaInfo *tfbridge.MetadataInfo) *tfbridge.ProviderInfo {
54175413
Tok: awsResource(route53Mod, "CidrLocation"),
54185414
},
54195415
"aws_vpc_security_group_egress_rule": {
5420-
Tok: awsResource("Vpc", "SecurityGroupEgressRule"),
5416+
Tok: awsResource(vpcMod, "SecurityGroupEgressRule"),
54215417
},
54225418
"aws_vpc_security_group_ingress_rule": {
5423-
Tok: awsResource("Vpc", "SecurityGroupIngressRule"),
5419+
Tok: awsResource(vpcMod, "SecurityGroupIngressRule"),
54245420
},
54255421
"aws_vpc_security_group_vpc_association": {
5426-
Tok: awsResource("Vpc", "SecurityGroupVpcAssociation"),
5422+
Tok: awsResource(vpcMod, "SecurityGroupVpcAssociation"),
54275423
},
54285424
"aws_vpc_endpoint_private_dns": {
5429-
Tok: awsResource("Vpc", "EndpointPrivateDns"),
5425+
Tok: awsResource(vpcMod, "EndpointPrivateDns"),
54305426
},
54315427
"aws_vpc_endpoint_service_private_dns_verification": {
5432-
Tok: awsResource("Vpc", "EndpointServicePrivateDnsVerification"),
5428+
Tok: awsResource(vpcMod, "EndpointServicePrivateDnsVerification"),
54335429
},
54345430
"aws_quicksight_iam_policy_assignment": {
54355431
Tok: awsResource("QuickSight", "IamPolicyAssignment"),

0 commit comments

Comments
 (0)