For aws assume role projects, resolve cs indentation, name of stack in cs, and unnecessary plugins
MODIFY
README.md
README.md
@@ -109,6 +109,7 @@ Example | Description |
Example | Description |
--------- | --------- |
+[AssumeRole](aws-go-assume-role) | Use AssumeRole to create resources.
[Fargate](aws-go-fargate) | Provision a full ECS Fargate cluster running a load-balanced nginx web server.
[Lambda](aws-go-lambda) | Create a lambda that does a simple `ToUpper` on the string input and returns it.
[S3 Folder](aws-go-s3-folder) | Serve a static website on S3.
@@ -118,6 +119,7 @@ Example | Description |
Example | Description |
--------- | --------- |
+[AssumeRole](aws-cs-assume-role) | Use AssumeRole to create resources.
[Fargate](aws-cs-fargate) | Build, deploy, and run a Dockerized app using ECS, ECR, and Fargate.
[Lambda](aws-cs-lambda) | Create a lambda that does a simple `ToUpper` on the string input and returns it.
[S3 Folder](aws-cs-s3-folder) | Serve a static website on S3.

MODIFY
aws-cs-assume-role/README.md
aws-cs-assume-role/README.md
@@ -34,6 +34,7 @@ $ pulumi stack output --json
"roleArn": "arn:aws:iam::<redacted>:role/allow-s3-management-ad477e6"
}
```
+
If we just use the above command then the secretAccessKey would not be shown. In order to show the secret value use this
```

MODIFY
aws-cs-assume-role/assume-role/AssumeRoleStack.cs
aws-cs-assume-role/assume-role/AssumeRoleStack.cs
+using System;
using Pulumi;
using Aws = Pulumi.Aws;
using Input = Pulumi.Aws.Inputs;
using AwsConfig = Pulumi.Aws.Config;
-using System;
class AssumeRoleStack : Stack
@@ -12,8 +12,7 @@ class AssumeRoleStack : Stack
var awsConfig = new Pulumi.Config("aws");
var config = new Pulumi.Config();
var roleToAssumeARN = config.Require("roleToAssumeARN");
- var provider = new Aws.Provider("privileged", new Aws.ProviderArgs
- {
+ var provider = new Aws.Provider("privileged", new Aws.ProviderArgs {
AssumeRole = new Aws.Inputs.ProviderAssumeRoleArgs
{
RoleArn = roleToAssumeARN,

MODIFY
aws-cs-assume-role/assume-role/Pulumi.yaml
aws-cs-assume-role/assume-role/Pulumi.yaml
-name: cs-assume-role
+name: assume-role
runtime: dotnet
description: Demonstrate use of AWS AssumeRole Functionality in C#

MODIFY
aws-cs-assume-role/create-role/Pulumi.yaml
aws-cs-assume-role/create-role/Pulumi.yaml
-name: cs-create-role
+name: create-role
runtime: dotnet
description: Demonstrate use of AWS AssumeRole Functionality in C#

MODIFY
aws-go-assume-role/README.md
aws-go-assume-role/README.md
@@ -63,7 +63,7 @@ must be set to the region in which you wish to operate:
```bash
$ pulumi stack init assume-role-assume
-$ pulumi config set roleToAssumeARN "$(pulumi stack output --stack assume-role-create roleArn)"
+$ pulumi config set roleToAssumeARN "$(pulumi stack output --stack {YOUR_STACK_PATH/assume-role-create} roleArn)"
$ pulumi config set aws:region us-east-1
```

DELETE
aws-go-assume-role/assume-role/assume-role
aws-go-assume-role/assume-role/assume-role
Binary files a/aws-go-assume-role/assume-role/assume-role and /dev/null differ

MODIFY
aws-go-assume-role/assume-role/main.go
aws-go-assume-role/assume-role/main.go
+// Copyright 2016-2020, Pulumi Corporation. All rights reserved.
+
package main
import (

MODIFY
aws-go-assume-role/create-role/main.go
aws-go-assume-role/create-role/main.go
-// Copyright 2016-2019, Pulumi Corporation. All rights reserved.
+// Copyright 2016-2020, Pulumi Corporation. All rights reserved.
+
package main
import (

DELETE
aws-py-assume-role/create-role/venv/pyvenv.cfg
-home = /Users/xuanhezhou/examples/aws-py-assume-role/create-role/venv/bin
-include-system-site-packages = false
-version = 3.8.3

MODIFY
aws-ts-assume-role/create-role/index.ts
aws-ts-assume-role/create-role/index.ts
-// Copyright 2016-2019, Pulumi Corporation. All rights reserved.
+// Copyright 2016-2020, Pulumi Corporation. All rights reserved.
import * as aws from "@pulumi/aws";
import * as pulumi from "@pulumi/pulumi";

For aws assume role projects, resolve cs indentation, name of stack in cs, and unnecessary plugins