happy-grass-18954
08/02/2022, 9:33 PMassumeRole
from Inline program?
Appreciate an example if someone has one.
It’s pretty straight-forward to set AWS region
await stack.SetConfigAsync("aws:region", new ConfigValue("us-east-1"));
I’m trying to figure out how to pass in the assumeRole settings using the same approach as the region.await stack.SetConfigAsync("aws:assumeRole.roleArn", new ConfigValue("arn:aws:iam::xxxxxx:role/mcrTestPulumi"));
var assumeRoleSettings = JsonSerializer.Serialize(new Dictionary<string, object>
{
{
"assumeRole",
new[]
{
new Dictionary<string, object?>
{
{ "roleArn", "arn:aws:iam::xxxx:role/mcrTestPulumi" }
},
}
},
});
var assumeRoleSettings2 = JsonSerializer.Serialize(new Dictionary<string, string>
{
{ "roleArn", "arn:aws:iam::504653139595:role/mcrTestPulumi" }
});
await stack.SetConfigAsync("aws:assumeRole", new ConfigValue(assumeRoleSettings2));
worried-city-86458
08/03/2022, 10:32 PMhappy-grass-18954
08/10/2022, 12:47 AMclean-controller-92732
08/10/2022, 9:33 PMworried-city-86458
08/11/2022, 1:33 AMCan you use the AWS provider with Inline program?I would expect so as that's just another way to wire up the program body