https://pulumi.com logo
#general
Title
# general
h

high-morning-17948

11/27/2018, 3:53 AM
Is there any docmentation to make pulumi deploy on localstack by using awslocal or by using a proxy to reroute the aws endpoints to localstack?
w

white-balloon-205

11/27/2018, 5:38 AM
I haven't tried it myself yet - but something like the following ought to work:
Copy code
let awsProvider = new aws.Provider("foo", {
    skipCredentialsValidation: true,
    skipMetadataApiCheck: true,
    s3ForcePathStyle: true,
    accessKey: "mockAccessKey",
    secretKey: "mockSecretKey",
    endpoints: [{
        dynamodb: "<http://localhost:4569>",
        lambda: "<http://localhost:4574>",
    }],
})

let table = new aws.dynamodb.Table("t", {
  //...  
}, { provider: awsProvider })
Definitely something we should add an example for!
h

high-morning-17948

11/27/2018, 2:01 PM
Thanks for the replay @white-balloon-205 I'll work it out today and let you know if I have any issues
@straight-jordan-23612
2 Views