salmon-ghost-86211
02/28/2020, 3:13 PMdualstack:
prefix is added automatically to the Alias Target field.
When I use Pulumi to create the same record, the dualstack:
prefix is not added.
Am I missing the correct way to do this, or is there a plan to add it?aloof-psychiatrist-4562
02/28/2020, 7:28 PMignore_changes
.bitter-zebra-93800
03/01/2020, 3:21 AMconst queue = new aws.sqs.Queue("dataqueue");
nice-hamburger-52192
03/02/2020, 5:23 AM... (other code omitted) ...
bucket.onObjectCreated('on_created', async e => {
if (e.Records) {
for (const rec of e.Records) {
const file = aws.s3.getBucketObject({
bucket: bucketName.get(),
key: rec.s3.object.key
});
console.log('body', (await file).body);
}
}
});
I get this error message in CloudWatch:
{
"errorType": "Runtime.ImportModuleError",
"errorMessage": "Error: Cannot find module '@pulumi/aws/s3/index.js'\nRequire stack:\n- /var/task/__index.js\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js",
"stack": [
"Runtime.ImportModuleError: Error: Cannot find module '@pulumi/aws/s3/index.js'",
"Require stack:",
"- /var/task/__index.js",
"- /var/runtime/UserFunction.js",
"- /var/runtime/index.js",
" at _loadUserApp (/var/runtime/UserFunction.js:100:13)",
" at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
" at Object.<anonymous> (/var/runtime/index.js:43:30)",
" at Module._compile (internal/modules/cjs/loader.js:955:30)",
" at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)",
" at Module.load (internal/modules/cjs/loader.js:811:32)",
" at Function.Module._load (internal/modules/cjs/loader.js:723:14)",
" at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)",
" at internal/main/run_main_module.js:17:11"
]
}
This is the line that is causing the issue:
const file = aws.s3.getBucketObject({
I have this import at the top of my TypeScript file:
import * as aws from '@pulumi/aws';
So what am I doing wrong?creamy-traffic-12121
03/04/2020, 2:45 PMcreamy-traffic-12121
03/04/2020, 2:46 PMexport const vpc = new aws.ec2.Vpc("importedVpc", {
cidrBlock: config.require('cidr'),
}, { import: "vpc-##################"})
creamy-traffic-12121
03/04/2020, 2:46 PM$ pulumi destroy
, will the vpc be deleted or left untouched?creamy-traffic-12121
03/04/2020, 2:54 PMcreamy-traffic-12121
03/04/2020, 3:31 PMawsx.ec2.Vpc.fromExistingIds
and I've been able to confirm that it doesn't delete the vpc on destroy. š šartypus-8bit:gentle-diamond-70147
03/04/2020, 4:05 PM{ import: "vpc-##################"}
, Pulumi is assuming ownership of the resource and will delete it if you do a pulumi destroy
. The fromExistingIds
.get()
, getVpc()
, etc. all just "read" the VPC information so Pulumi will not modify or destroy them.bitter-dentist-28132
03/04/2020, 6:38 PMlimited-rainbow-51650
03/04/2020, 8:38 PMaws.iam.Role
here? The Version
property is not assignableā¦limited-rainbow-51650
03/07/2020, 3:03 PMgreen-morning-1318
03/07/2020, 8:43 PMbillions-scientist-31826
03/10/2020, 8:01 PMflat-insurance-25294
03/13/2020, 11:14 AMnutritious-pager-34892
03/13/2020, 8:54 PMnutritious-pager-34892
03/16/2020, 1:27 AMincalculable-engineer-92975
03/16/2020, 6:08 PMincalculable-engineer-92975
03/17/2020, 2:12 PMincalculable-engineer-92975
03/18/2020, 9:56 PMbitter-zebra-93800
03/19/2020, 12:16 AMalert-france-93241
03/19/2020, 11:20 AMambitious-pilot-38837
03/19/2020, 2:37 PMiam:CreateRole
. Just wondering before I go ahead and start adding policies until I get pulumi up
to work.faint-motherboard-95438
03/20/2020, 1:04 PMfaint-oil-7535
03/23/2020, 7:01 AMastonishing-gpu-12842
03/23/2020, 6:08 PMI0322 22:24:05.056101 11760 plan_executor.go:391] planExecutor.retirePendingDeletes(...): no pending deletions
I0322 22:24:05.056101 11760 plan_executor.go:215] planExecutor.Execute(...): waiting for incoming events
I0322 22:24:05.056101 11760 step_executor.go:321] StepExecutor worker(-2): worker coming online
I0322 22:24:05.056101 11760 step_executor.go:321] StepExecutor worker(-2): worker waiting for incoming chains
I0322 22:24:06.757562 11760 eventsink.go:60] Registering resource: t=pulumi:pulumi:Stack, name=assettracking-testing, custom=false
I0322 22:24:06.757562 11760 eventsink.go:63] eventSink::Debug(<{%reset%}>Registering resource: t=pulumi:pulumi:Stack, name=assettracking-testing, custom=false<{%reset%}>)
I0322 22:24:06.762066 11760 eventsink.go:60] RegisterResource RPC prepared: t=pulumi:pulumi:Stack, name=assettracking-testing
I0322 22:24:06.762066 11760 eventsink.go:63] eventSink::Debug(<{%reset%}>RegisterResource RPC prepared: t=pulumi:pulumi:Stack, name=assettracking-testing<{%reset%}>)
I0322 22:24:06.762567 11760 source_eval.go:793] ResourceMonitor.RegisterResource received: t=pulumi:pulumi:Stack, name=assettracking-testing, custom=false, #props=0, parent=, protect=false, provider=, deps=[], deleteBeforeReplace=<nil>, ignoreChanges=[], aliases=[], customTimeouts={0 0 0}
I0322 22:24:06.762567 11760 source_eval.go:147] EvalSourceIterator produced a registration: t=pulumi:pulumi:Stack,name=assettracking-testing,#props=0
I0322 22:24:06.762567 11760 plan_executor.go:219] planExecutor.Execute(...): incoming event (nil? false, <nil>)
I0322 22:24:06.762567 11760 plan_executor.go:364] planExecutor.handleSingleEvent(...): received RegisterResourceEvent
I0322 22:24:06.762567 11760 step_generator.go:493] Planner decided to create 'urn:pulumi:testing::assettracking::pulumi:pulumi:Stack::assettracking-testing' (inputs=map[])
I0322 22:24:06.762567 11760 step_executor.go:321] StepExecutor worker(-2): worker received chain for execution
I0322 22:24:06.762567 11760 step_executor.go:321] StepExecutor worker(-2): worker waiting for incoming chains
I0322 22:24:06.762567 11760 step_executor.go:321] StepExecutor worker(0): launching oneshot worker
I0322 22:24:06.762567 11760 step_executor.go:321] StepExecutor worker(0): applying step create on urn:pulumi:testing::assettracking::pulumi:pulumi:Stack::assettracking-testing (preview true)
I0322 22:24:06.762567 11760 step_executor.go:321] StepExecutor worker(0): step create on urn:pulumi:testing::assettracking::pulumi:pulumi:Stack::assettracking-testing retired
I0322 22:24:06.762567 11760 source_eval.go:825] stripping unknowns from RegisterResource response for urn urn:pulumi:testing::assettracking::pulumi:pulumi:Stack::assettracking-testing
I0322 22:24:06.762567 11760 source_eval.go:835] ResourceMonitor.RegisterResource operation finished: t=pulumi:pulumi:Stack, urn=urn:pulumi:testing::assettracking::pulumi:pulumi:Stack::assettracking-testing, #outs=0
I0322 22:24:06.764569 11760 eventsink.go:60] RegisterResource RPC finished: resource:assettracking-testing[pulumi:pulumi:Stack]; err: null, resp: urn:pulumi:testing::assettracking::pulumi:pulumi:Stack::assettracking-testing,,,,
I0322 22:24:06.764569 11760 eventsink.go:63] eventSink::Debug(<{%reset%}>RegisterResource RPC finished: resource:assettracking-testing[pulumi:pulumi:Stack]; err: null, resp: urn:pulumi:testing::assettracking::pulumi:pulumi:Stack::assettracking-testing,,,,<{%reset%}>)
bitter-zebra-93800
03/24/2020, 2:33 AMbusy-magician-57137
03/24/2020, 10:07 AMawsx.ec2.Vpc.fromExistingIds
. If I start a new stack, the up
command preview is planning to create
this existing vpc resource. I went ahead anyway fingers crossed. When I run the destroy
command, the preview is telling me its planning on destroying the existing resource.busy-magician-57137
03/24/2020, 10:09 AMbusy-magician-57137
03/24/2020, 10:09 AM