sparse-intern-71089
04/21/2021, 6:37 PMwitty-candle-66007
04/21/2021, 7:07 PMpulumi import
will do two things, it will bring the resources under Pulumi management and it will generate scaffolding code you can use to mange the resources’ configuration going forward.acoustic-room-2113
04/21/2021, 10:07 PMwitty-candle-66007
04/21/2021, 10:11 PMacoustic-room-2113
04/21/2021, 10:12 PMpulumi:pulumi:Stack cockroach-cockroach.dev
│ URN: urn:pulumi:cockroach.dev::cockroach::pulumi:pulumi:Stack::cockroach-cockroach.dev
├─ es:ec2:PersistentEc2InstanceGroup cockroach
│ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup::cockroach
│ ├─ my:ec2:PersistentEc2Instance cockroach-2
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance::cockroach-2
│ │ ├─ aws:ebs/volume:Volume cockroach-2-data
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:ebs/volume:Volume::cockroach-2-data
│ │ ├─ aws:ec2/instance:Instance cockroach-2
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:ec2/instance:Instance::cockroach-2
│ │ ├─ aws:cloudwatch/metricAlarm:MetricAlarm cockroach-2-recovery
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:cloudwatch/metricAlarm:MetricAlarm::cockroach-2-recovery
│ │ ├─ aws:ec2/volumeAttachment:VolumeAttachment cockroach-2-data-attach
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:ec2/volumeAttachment:VolumeAttachment::cockroach-2-data-attach
│ │ ├─ aws:route53/record:Record cockroach-2-dns
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:route53/record:Record::cockroach-2-dns
│ │ └─ aws:route53/record:Record cockroach-2-rdns
│ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:route53/record:Record::cockroach-2-rdns
│ ├─ my:ec2:PersistentEc2Instance cockroach-1
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance::cockroach-1
│ │ ├─ aws:ebs/volume:Volume cockroach-1-data
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:ebs/volume:Volume::cockroach-1-data
│ │ ├─ aws:ec2/instance:Instance cockroach-1
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:ec2/instance:Instance::cockroach-1
│ │ ├─ aws:cloudwatch/metricAlarm:MetricAlarm cockroach-1-recovery
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:cloudwatch/metricAlarm:MetricAlarm::cockroach-1-recovery
│ │ ├─ aws:ec2/volumeAttachment:VolumeAttachment cockroach-1-data-attach
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:ec2/volumeAttachment:VolumeAttachment::cockroach-1-data-attach
│ │ ├─ aws:route53/record:Record cockroach-1-dns
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:route53/record:Record::cockroach-1-dns
│ │ └─ aws:route53/record:Record cockroach-1-rdns
│ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:route53/record:Record::cockroach-1-rdns
│ ├─ my:ec2:PersistentEc2Instance cockroach-0
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance::cockroach-0
│ │ ├─ aws:ebs/volume:Volume cockroach-0-data
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:ebs/volume:Volume::cockroach-0-data
│ │ ├─ aws:ec2/instance:Instance cockroach-0
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:ec2/instance:Instance::cockroach-0
│ │ ├─ aws:cloudwatch/metricAlarm:MetricAlarm cockroach-0-recovery
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:cloudwatch/metricAlarm:MetricAlarm::cockroach-0-recovery
│ │ ├─ aws:ec2/volumeAttachment:VolumeAttachment cockroach-0-data-attach
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:ec2/volumeAttachment:VolumeAttachment::cockroach-0-data-attach
│ │ ├─ aws:route53/record:Record cockroach-0-dns
│ │ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:route53/record:Record::cockroach-0-dns
│ │ └─ aws:route53/record:Record cockroach-0-rdns
│ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$my:ec2:PersistentEc2Instance$aws:route53/record:Record::cockroach-0-rdns
│ ├─ aws:lb/targetGroupAttachment:TargetGroupAttachment cockroach-1
│ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$aws:lb/targetGroupAttachment:TargetGroupAttachment::cockroach-1
│ ├─ aws:lb/targetGroupAttachment:TargetGroupAttachment cockroach-2
│ │ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$aws:lb/targetGroupAttachment:TargetGroupAttachment::cockroach-2
│ └─ aws:lb/targetGroupAttachment:TargetGroupAttachment cockroach-0
│ URN: urn:pulumi:cockroach.dev::cockroach::es:ec2:PersistentEc2InstanceGroup$aws:lb/targetGroupAttachment:TargetGroupAttachment::cockroach-0
acoustic-room-2113
04/21/2021, 10:14 PMwitty-candle-66007
04/21/2021, 10:14 PMacoustic-room-2113
04/21/2021, 10:18 PMwitty-candle-66007
04/21/2021, 10:19 PMacoustic-room-2113
04/21/2021, 10:19 PMwitty-candle-66007
04/21/2021, 10:26 PMSo if the user defines the component resource in their code with no children, runs an update to create the component, they can then use pulumi import on the existing resources and specify the URN of the component as the parent
acoustic-room-2113
04/23/2021, 8:05 PMwitty-candle-66007
04/23/2021, 9:02 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by