sparse-intern-71089
04/28/2022, 2:08 PMbillowy-army-68599
pulumi import
to grab the current running state. there's command that will do the migration for youmagnificent-smartphone-40853
04/28/2022, 2:23 PMsalmon-account-74572
04/28/2022, 3:04 PMmagnificent-smartphone-40853
04/28/2022, 3:41 PMsalmon-account-74572
04/28/2022, 3:45 PMpulumi.String(..)
(or similar). I’m still learning Go, however, so it’s entirely possible there’s a better/different approach. I don’t know that similar constructs/mechanisms would be required in other languages.magnificent-smartphone-40853
04/28/2022, 3:46 PMbillowy-army-68599
pulumi.String()
tells pulumi it's an input, ie could potentially be resolved asynchronously. If you're using a standard Go string, wrapping in pulumi.String
makes the type validmagnificent-smartphone-40853
04/28/2022, 5:20 PMrds-sg-${regionAlias}-${environment}-${name}
, {
description: ${name} - ${environment} - security group
,
vpc: vpc.get(),
});
is it okay to use vpc.get() or should I be doing something else?billowy-army-68599
vpc
shouldn't be taking a plain type, if you're returning the whole vpc type, you should be able to do vpc.id
magnificent-smartphone-40853
04/28/2022, 5:54 PMexport interface SecurityGroupArgs {
/**
* An existing SecurityGroup to use for this awsx SecurityGroup. If not provided, a default
* one will be created.
*/
securityGroup?: aws.ec2.SecurityGroup;
/**
* The vpc this security group applies to. Or [Vpc.getDefault] if unspecified.
*/
vpc?: x.ec2.Vpc;
...
}
billowy-army-68599
awsx
- you should be able to pass the whole object thenbillowy-army-68599
magnificent-smartphone-40853
04/28/2022, 5:58 PMbillowy-army-68599
billowy-army-68599
average-tiger-58107
05/19/2022, 1:54 AMaverage-tiger-58107
05/19/2022, 1:55 AMawsx.ecs.FargateService
average-tiger-58107
05/19/2022, 2:20 AMawsx