Skip to content

Commit

Permalink
Upstream v5.73.0 (#4674)
Browse files Browse the repository at this point in the history
Upgrade upstream provider to v5.73.0. 

**New resources:**

imagebuilder/lifecyclePolicy.LifecyclePolicy
resiliencehub/resiliencyPolicy.ResiliencyPolicy
sagemaker/hub.Hub
sagemaker/mlflowTrackingServer.MlflowTrackingServer

**New functions:**

ssm/getPatchBaselines.getPatchBaselines

Fixes: #4665

New patches are taken to compensate for upstream partially removing Go
SDKV1, so that Pulumi-only resources such as aws.s3.Bucket continue to
work as expected.

---------

Co-authored-by: Florian Stadler <[email protected]>
  • Loading branch information
t0yv0 and flostadler authored Oct 29, 2024
1 parent 5af66ab commit b1d1cd1
Show file tree
Hide file tree
Showing 683 changed files with 57,945 additions and 2,418 deletions.
3 changes: 3 additions & 0 deletions examples/ecr-image/Pulumi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: ecr-image
runtime: nodejs
description: Publish docker images to ECR
41 changes: 41 additions & 0 deletions examples/ecr-image/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# examples/ecr-image

This example demonstrates how to use Pulumi to publish a Docker image to Amazon Elastic Container Registry (ECR).

## Steps

1. **Install Dependencies**

Ensure you have the necessary dependencies installed:

```sh
npm install
```

2. **Run Pulumi Up**

Run Pulumi to create the ECR repository and push the Docker image:

```sh
pulumi up
```

Confirm the changes and wait for the process to complete.

## Files

- `index.ts`: Contains the Pulumi program to create the ECR repository and push the Docker image.
- `Dockerfile`: Dockerfile for building the Docker image.

## Clean Up

To clean up the resources created by Pulumi:

```sh
pulumi destroy
```

## Additional Resources

- [Pulumi AWS Documentation](https://www.pulumi.com/docs/intro/cloud-providers/aws/)
- [Amazon ECR Documentation](https://docs.aws.amazon.com/AmazonECR/latest/userguide/what-is-ecr.html)
3 changes: 3 additions & 0 deletions examples/ecr-image/app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM public.ecr.aws/nginx/nginx
RUN echo "<h1>Hello Pulumi!</h1>" > \
/usr/share/nginx/html/index.html
36 changes: 36 additions & 0 deletions examples/ecr-image/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as docker from "@pulumi/docker-build";

const config = new pulumi.Config("aws");
const providerOpts = { provider: new aws.Provider("prov", { region: <aws.Region>config.require("envRegion") }) };

const repository = new aws.ecr.Repository("myrepository", {
forceDelete: true,
}, providerOpts);

// Get registry info (credentials and endpoint) so we can publish to it.
const credentials = aws.ecr.getCredentialsOutput({ registryId: repository.registryId }, providerOpts);
const decodedCredentials = credentials.authorizationToken.apply(tok => Buffer.from(tok, "base64").toString());
const registryInfo = decodedCredentials.apply(creds => {
const [username, password] = creds.split(":");
if (!password || !username) {
throw new Error("Invalid credentials");
}
return {
address: credentials.proxyEndpoint,
username: username,
password: password,
};
});

const image = new docker.Image("myimage", {
push: true,
tags: [pulumi.interpolate`${repository.repositoryUrl}:latest`],
context: {
location: "./app",
},
registries: [registryInfo],
});

export const digest = image.digest;
16 changes: 16 additions & 0 deletions examples/ecr-image/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "ecr-image",
"version": "0.0.1",
"license": "Apache-2.0",
"scripts": {
"build": "tsc"
},
"dependencies": {
"@pulumi/pulumi": "^3.0.0",
"@pulumi/aws": "^6.0.0",
"@pulumi/docker-build": "^0.0.7"
},
"devDependencies": {
"@types/node": "^8.0.0"
}
}
18 changes: 18 additions & 0 deletions examples/ecr-image/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"strict": true,
"outDir": "bin",
"target": "es2016",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"experimentalDecorators": true,
"pretty": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.ts"
]
}
14 changes: 14 additions & 0 deletions examples/examples_nodejs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -716,3 +716,17 @@ func TestServerlessAppRepositoryApplication(t *testing.T) {

integration.ProgramTest(t, &test)
}

func TestAccEcrImage(t *testing.T) {
test := getJSBaseOptions(t).
With(integration.ProgramTestOptions{
Dir: filepath.Join(getCwd(t), "ecr-image"),
ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
repoDigest, ok := stack.Outputs["digest"].(string)
assert.True(t, ok, "expected digest output to be set")
assert.NotEmpty(t, repoDigest)
},
})

integration.ProgramTest(t, &test)
}
47 changes: 24 additions & 23 deletions examples/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.23.2

require (
github.com/aws/aws-sdk-go v1.55.5
github.com/aws/aws-sdk-go-v2/config v1.27.43
github.com/aws/aws-sdk-go-v2/config v1.28.0
github.com/aws/aws-sdk-go-v2/service/iam v1.37.2
github.com/pulumi/providertest v0.1.2
github.com/pulumi/pulumi-aws/provider/v6 v6.0.0-00010101000000-000000000000
Expand Down Expand Up @@ -60,7 +60,7 @@ require (
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.6 // indirect
github.com/aws/aws-sdk-go-v2/credentials v1.17.41 // indirect
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.17 // indirect
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.32 // indirect
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.33 // indirect
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.21 // indirect
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.21 // indirect
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1 // indirect
Expand All @@ -78,21 +78,21 @@ require (
github.com/aws/aws-sdk-go-v2/service/appflow v1.45.3 // indirect
github.com/aws/aws-sdk-go-v2/service/appintegrations v1.30.2 // indirect
github.com/aws/aws-sdk-go-v2/service/applicationautoscaling v1.33.2 // indirect
github.com/aws/aws-sdk-go-v2/service/applicationinsights v1.28.2 // indirect
github.com/aws/aws-sdk-go-v2/service/applicationinsights v1.29.0 // indirect
github.com/aws/aws-sdk-go-v2/service/applicationsignals v1.6.2 // indirect
github.com/aws/aws-sdk-go-v2/service/appmesh v1.29.2 // indirect
github.com/aws/aws-sdk-go-v2/service/apprunner v1.32.2 // indirect
github.com/aws/aws-sdk-go-v2/service/appstream v1.41.2 // indirect
github.com/aws/aws-sdk-go-v2/service/appsync v1.38.2 // indirect
github.com/aws/aws-sdk-go-v2/service/athena v1.47.2 // indirect
github.com/aws/aws-sdk-go-v2/service/athena v1.48.0 // indirect
github.com/aws/aws-sdk-go-v2/service/auditmanager v1.37.2 // indirect
github.com/aws/aws-sdk-go-v2/service/autoscaling v1.45.2 // indirect
github.com/aws/aws-sdk-go-v2/service/autoscaling v1.46.0 // indirect
github.com/aws/aws-sdk-go-v2/service/autoscalingplans v1.24.2 // indirect
github.com/aws/aws-sdk-go-v2/service/backup v1.39.3 // indirect
github.com/aws/aws-sdk-go-v2/service/batch v1.46.2 // indirect
github.com/aws/aws-sdk-go-v2/service/bcmdataexports v1.7.2 // indirect
github.com/aws/aws-sdk-go-v2/service/bedrock v1.20.2 // indirect
github.com/aws/aws-sdk-go-v2/service/bedrockagent v1.23.2 // indirect
github.com/aws/aws-sdk-go-v2/service/bedrock v1.21.0 // indirect
github.com/aws/aws-sdk-go-v2/service/bedrockagent v1.24.0 // indirect
github.com/aws/aws-sdk-go-v2/service/budgets v1.28.2 // indirect
github.com/aws/aws-sdk-go-v2/service/chatbot v1.8.2 // indirect
github.com/aws/aws-sdk-go-v2/service/chime v1.34.2 // indirect
Expand Down Expand Up @@ -127,17 +127,17 @@ require (
github.com/aws/aws-sdk-go-v2/service/configservice v1.50.2 // indirect
github.com/aws/aws-sdk-go-v2/service/connect v1.113.2 // indirect
github.com/aws/aws-sdk-go-v2/service/connectcases v1.21.2 // indirect
github.com/aws/aws-sdk-go-v2/service/controltower v1.18.2 // indirect
github.com/aws/aws-sdk-go-v2/service/controltower v1.18.3 // indirect
github.com/aws/aws-sdk-go-v2/service/costandusagereportservice v1.28.2 // indirect
github.com/aws/aws-sdk-go-v2/service/costexplorer v1.43.2 // indirect
github.com/aws/aws-sdk-go-v2/service/costoptimizationhub v1.10.2 // indirect
github.com/aws/aws-sdk-go-v2/service/customerprofiles v1.42.2 // indirect
github.com/aws/aws-sdk-go-v2/service/databasemigrationservice v1.43.0 // indirect
github.com/aws/aws-sdk-go-v2/service/databasemigrationservice v1.44.0 // indirect
github.com/aws/aws-sdk-go-v2/service/databrew v1.33.2 // indirect
github.com/aws/aws-sdk-go-v2/service/dataexchange v1.32.2 // indirect
github.com/aws/aws-sdk-go-v2/service/dataexchange v1.33.0 // indirect
github.com/aws/aws-sdk-go-v2/service/datapipeline v1.25.2 // indirect
github.com/aws/aws-sdk-go-v2/service/datasync v1.42.2 // indirect
github.com/aws/aws-sdk-go-v2/service/datazone v1.22.2 // indirect
github.com/aws/aws-sdk-go-v2/service/datazone v1.23.0 // indirect
github.com/aws/aws-sdk-go-v2/service/dax v1.23.2 // indirect
github.com/aws/aws-sdk-go-v2/service/detective v1.31.2 // indirect
github.com/aws/aws-sdk-go-v2/service/devicefarm v1.28.2 // indirect
Expand All @@ -149,12 +149,12 @@ require (
github.com/aws/aws-sdk-go-v2/service/docdbelastic v1.13.2 // indirect
github.com/aws/aws-sdk-go-v2/service/drs v1.30.2 // indirect
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.36.2 // indirect
github.com/aws/aws-sdk-go-v2/service/ec2 v1.182.0 // indirect
github.com/aws/aws-sdk-go-v2/service/ec2 v1.184.0 // indirect
github.com/aws/aws-sdk-go-v2/service/ecr v1.36.2 // indirect
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.27.2 // indirect
github.com/aws/aws-sdk-go-v2/service/ecs v1.47.3 // indirect
github.com/aws/aws-sdk-go-v2/service/ecs v1.47.4 // indirect
github.com/aws/aws-sdk-go-v2/service/efs v1.33.2 // indirect
github.com/aws/aws-sdk-go-v2/service/eks v1.50.2 // indirect
github.com/aws/aws-sdk-go-v2/service/eks v1.51.0 // indirect
github.com/aws/aws-sdk-go-v2/service/elasticache v1.43.0 // indirect
github.com/aws/aws-sdk-go-v2/service/elasticbeanstalk v1.28.2 // indirect
github.com/aws/aws-sdk-go-v2/service/elasticloadbalancing v1.28.2 // indirect
Expand All @@ -169,7 +169,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/finspace v1.28.2 // indirect
github.com/aws/aws-sdk-go-v2/service/firehose v1.34.2 // indirect
github.com/aws/aws-sdk-go-v2/service/fis v1.30.2 // indirect
github.com/aws/aws-sdk-go-v2/service/fms v1.37.2 // indirect
github.com/aws/aws-sdk-go-v2/service/fms v1.38.0 // indirect
github.com/aws/aws-sdk-go-v2/service/fsx v1.49.2 // indirect
github.com/aws/aws-sdk-go-v2/service/gamelift v1.36.2 // indirect
github.com/aws/aws-sdk-go-v2/service/glacier v1.26.2 // indirect
Expand All @@ -181,6 +181,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/guardduty v1.50.0 // indirect
github.com/aws/aws-sdk-go-v2/service/healthlake v1.28.2 // indirect
github.com/aws/aws-sdk-go-v2/service/identitystore v1.27.2 // indirect
github.com/aws/aws-sdk-go-v2/service/imagebuilder v1.38.0 // indirect
github.com/aws/aws-sdk-go-v2/service/inspector v1.25.2 // indirect
github.com/aws/aws-sdk-go-v2/service/inspector2 v1.32.2 // indirect
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.0 // indirect
Expand Down Expand Up @@ -212,7 +213,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/lightsail v1.42.2 // indirect
github.com/aws/aws-sdk-go-v2/service/location v1.42.2 // indirect
github.com/aws/aws-sdk-go-v2/service/lookoutmetrics v1.31.2 // indirect
github.com/aws/aws-sdk-go-v2/service/m2 v1.17.2 // indirect
github.com/aws/aws-sdk-go-v2/service/m2 v1.18.0 // indirect
github.com/aws/aws-sdk-go-v2/service/macie2 v1.43.2 // indirect
github.com/aws/aws-sdk-go-v2/service/mediaconnect v1.35.2 // indirect
github.com/aws/aws-sdk-go-v2/service/mediaconvert v1.61.2 // indirect
Expand All @@ -239,16 +240,16 @@ require (
github.com/aws/aws-sdk-go-v2/service/pcaconnectorad v1.9.2 // indirect
github.com/aws/aws-sdk-go-v2/service/pcs v1.2.2 // indirect
github.com/aws/aws-sdk-go-v2/service/pinpoint v1.34.2 // indirect
github.com/aws/aws-sdk-go-v2/service/pinpointsmsvoicev2 v1.15.2 // indirect
github.com/aws/aws-sdk-go-v2/service/pipes v1.17.2 // indirect
github.com/aws/aws-sdk-go-v2/service/pinpointsmsvoicev2 v1.16.0 // indirect
github.com/aws/aws-sdk-go-v2/service/pipes v1.18.0 // indirect
github.com/aws/aws-sdk-go-v2/service/polly v1.45.2 // indirect
github.com/aws/aws-sdk-go-v2/service/pricing v1.32.2 // indirect
github.com/aws/aws-sdk-go-v2/service/qbusiness v1.14.0 // indirect
github.com/aws/aws-sdk-go-v2/service/qldb v1.25.2 // indirect
github.com/aws/aws-sdk-go-v2/service/quicksight v1.76.2 // indirect
github.com/aws/aws-sdk-go-v2/service/quicksight v1.77.0 // indirect
github.com/aws/aws-sdk-go-v2/service/ram v1.29.2 // indirect
github.com/aws/aws-sdk-go-v2/service/rbin v1.20.2 // indirect
github.com/aws/aws-sdk-go-v2/service/rds v1.87.2 // indirect
github.com/aws/aws-sdk-go-v2/service/rds v1.88.0 // indirect
github.com/aws/aws-sdk-go-v2/service/redshift v1.50.0 // indirect
github.com/aws/aws-sdk-go-v2/service/redshiftdata v1.30.2 // indirect
github.com/aws/aws-sdk-go-v2/service/redshiftserverless v1.23.2 // indirect
Expand All @@ -265,7 +266,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/route53recoveryreadiness v1.21.2 // indirect
github.com/aws/aws-sdk-go-v2/service/route53resolver v1.33.0 // indirect
github.com/aws/aws-sdk-go-v2/service/rum v1.21.2 // indirect
github.com/aws/aws-sdk-go-v2/service/s3 v1.65.3 // indirect
github.com/aws/aws-sdk-go-v2/service/s3 v1.66.0 // indirect
github.com/aws/aws-sdk-go-v2/service/s3control v1.49.2 // indirect
github.com/aws/aws-sdk-go-v2/service/s3outposts v1.28.2 // indirect
github.com/aws/aws-sdk-go-v2/service/sagemaker v1.163.2 // indirect
Expand Down Expand Up @@ -306,7 +307,7 @@ require (
github.com/aws/aws-sdk-go-v2/service/vpclattice v1.12.2 // indirect
github.com/aws/aws-sdk-go-v2/service/waf v1.25.2 // indirect
github.com/aws/aws-sdk-go-v2/service/wafregional v1.25.2 // indirect
github.com/aws/aws-sdk-go-v2/service/wafv2 v1.54.2 // indirect
github.com/aws/aws-sdk-go-v2/service/wafv2 v1.55.0 // indirect
github.com/aws/aws-sdk-go-v2/service/wellarchitected v1.34.2 // indirect
github.com/aws/aws-sdk-go-v2/service/worklink v1.23.2 // indirect
github.com/aws/aws-sdk-go-v2/service/workspaces v1.48.2 // indirect
Expand Down Expand Up @@ -390,7 +391,7 @@ require (
github.com/hashicorp/terraform-plugin-framework-jsontypes v0.2.0 // indirect
github.com/hashicorp/terraform-plugin-framework-timeouts v0.4.1 // indirect
github.com/hashicorp/terraform-plugin-framework-timetypes v0.5.0 // indirect
github.com/hashicorp/terraform-plugin-framework-validators v0.13.0 // indirect
github.com/hashicorp/terraform-plugin-framework-validators v0.14.0 // indirect
github.com/hashicorp/terraform-plugin-go v0.24.0 // indirect
github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect
github.com/hashicorp/terraform-plugin-mux v0.16.0 // indirect
Expand Down
Loading

0 comments on commit b1d1cd1

Please sign in to comment.