sparse-intern-71089
04/03/2021, 6:23 PMbillowy-army-68599
pulumi config set aws:endpoints
but it will then be global for all resources, is that what you want?billowy-army-68599
fresh-summer-65887
04/03/2021, 6:37 PMfresh-summer-65887
04/03/2021, 6:38 PMfresh-summer-65887
04/03/2021, 6:38 PMfresh-summer-65887
04/03/2021, 6:39 PMbillowy-army-68599
fresh-summer-65887
04/03/2021, 6:46 PMbillowy-army-68599
fresh-summer-65887
04/03/2021, 6:50 PMfresh-summer-65887
04/03/2021, 6:51 PMfresh-summer-65887
04/03/2021, 6:53 PMfresh-summer-65887
04/03/2021, 6:55 PMfresh-summer-65887
04/03/2021, 6:58 PMfresh-summer-65887
04/03/2021, 6:58 PMpublic class DefaultStack : Stack
{
public DefaultStack()
{
var tableArgs = new TableArgs
{
Name = "table",
Attributes =
{
new TableAttributeArgs
{
Name = "PK",
Type = "S",
},
new TableAttributeArgs
{
Name = "SK",
Type = "S",
}
},
HashKey = "PK",
RangeKey = "SK",
BillingMode = "PAY_PER_REQUEST",
};
new Table("table", tableArgs);
}
}
billowy-army-68599
pulumi config set --path 'aws:endpoints[0].dynamodb' <http://localhost:4566>
billowy-army-68599
billowy-army-68599
pulumi config set --path 'aws:endpoints[0].dynamodb' <http://localhost:4566>
warning: A new version of Pulumi is available. To upgrade from version '2.23.2' to '2.24.1', visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
error: a map was expected for key "dynamodb"
fresh-summer-65887
04/03/2021, 7:06 PMfresh-summer-65887
04/03/2021, 7:14 PM❯ pulumi config set --path '["aws:endpoints"]:["dynamodb"]' <http://example.com>
error: invalid configuration key: could not parse [aws:endpoints]:[dynamodb] as a configuration key (configuration keys should be of the form `<namespace>:<name>`)
fresh-summer-65887
04/03/2021, 7:14 PMbillowy-army-68599
pulumi config set --path 'aws:endpoints[0]["dynamodb"]' <http://example.com>
Seems to workbillowy-army-68599
{"aws:endpoints[0]["dynamodb"], new ConfigValue("foo")}
fresh-summer-65887
04/03/2021, 7:29 PMfresh-summer-65887
04/03/2021, 7:54 PMawait _workspaceStack.SetConfigAsync(new Dictionary<string, ConfigValue>
{
{"aws:region", new ConfigValue("eu-west-1")},
{"aws:accessKey", new ConfigValue("not")},
{"aws:secretKey", new ConfigValue("used")},
{"aws:endpoints[0][\"dynamodb\"]" , new ConfigValue("<http://example.com>")}
});
... is what I'm usingfresh-summer-65887
04/03/2021, 7:55 PMfresh-summer-65887
04/03/2021, 7:55 PMPulumi.Automation.Commands.Exceptions.CommandException: code: -1
stdout: Updating (testing):
+ pulumi:pulumi:Stack dynamodb-tests-testing creating
aws:dynamodb:Table table error: could not validate provider configuration: 1 error occurred:
+ pulumi:pulumi:Stack dynamodb-tests-testing created
aws:dynamodb:Table table **failed** 1 error
Diagnostics:
aws:dynamodb:Table (table):
error: could not validate provider configuration: 1 error occurred:
* Invalid or unknown key
Resources:
+ 1 created
fresh-summer-65887
04/03/2021, 8:03 PMbillowy-army-68599
config:
aws:endpoints:
- dynamodb: <http://example.com>
aws:region: us-west-2
fresh-summer-65887
04/03/2021, 8:11 PMbillowy-army-68599
pulumi config set --path 'aws:endpoints[0]["dynamodb"]' <http://example.com>
fresh-summer-65887
04/03/2021, 8:19 PMfresh-summer-65887
04/03/2021, 8:23 PMpulumi config set --path "aws:endpoints[0][""dynamodb""]" <http://example.com>
pulumi config set --path "aws:endpoints[0]['dynamodb']" <http://example.com>
pulumi config set --path "aws:endpoints[0][\"dynamodb\"]" <http://example.com>
none of the above worked...billowy-army-68599
fresh-summer-65887
04/03/2021, 8:24 PMpulumi config set --path 'aws:endpoints[0][\"dynamodb\"]' <http://example.com>
worked.fresh-summer-65887
04/03/2021, 8:28 PM--path
equivalent here.billowy-army-68599
fresh-summer-65887
04/03/2021, 8:36 PMconfigMap
parameter that is a dictionary which is what I'm using.billowy-army-68599
fresh-summer-65887
04/03/2021, 8:39 PMfresh-summer-65887
04/03/2021, 8:45 PMfresh-summer-65887
04/03/2021, 8:46 PMfresh-summer-65887
04/04/2021, 9:45 AMbillowy-army-68599