enough-leather-70274
03/01/2021, 10:47 PMlittle-cartoon-10569
03/01/2021, 10:49 PMiamInstanceProfile
parameter that takes the ID of the profile.aws:domainJoin
document.enough-leather-70274
03/01/2021, 10:50 PMlittle-cartoon-10569
03/01/2021, 10:50 PMenough-leather-70274
03/01/2021, 10:51 PMlittle-cartoon-10569
03/01/2021, 10:51 PMenough-leather-70274
03/01/2021, 11:34 PMlittle-cartoon-10569
03/01/2021, 11:34 PMenough-leather-70274
03/01/2021, 11:35 PMlittle-cartoon-10569
03/01/2021, 11:35 PMenough-leather-70274
03/01/2021, 11:41 PMlittle-cartoon-10569
03/02/2021, 12:31 AMpulumi state delete
to remove it from the old state.
To use a resource in the new project but have it stay in the old project, you would use a StackReference.enough-leather-70274
03/02/2021, 1:19 AMpulumi.all().apply()
call above? I have the folllowing:
instance_startup_doc = aws.ssm.Document(
f"{env}-{name}-ad-ec2-domain-join",
document_type="Command",
document_format="JSON",
target_type="/AWS::EC2::Instance",
content=json.dumps(
{
"schemaVersion": "2.2",
"description": "Join a Windows machine to the domain",
"parameters": {},
"mainSteps": [
{
"name": "joinDomain",
"action": "aws:domainJoin",
"inputs": {
"directoryId": managed_ad.id,
"directoryName": managed_ad.name,
},
}
],
}
),
...
)
... but pulumi up throws TypeError: Object of type Output is not JSON serializable
, presumably because the managed_ad props are not yet realised.little-cartoon-10569
03/02/2021, 1:24 AMjson.dumps()
inside an apply()
.
Your link is to the theory. This link goes to the API specs:https://www.pulumi.com/docs/reference/pkg/python/pulumi/enough-leather-70274
03/02/2021, 1:24 AMlittle-cartoon-10569
03/02/2021, 1:25 AMOutput.all(managed_ad.id, managed_ad.name).apply()
. Very vague on how to pass a Callable into that though, sorry....enough-leather-70274
03/02/2021, 1:27 AMlittle-cartoon-10569
03/02/2021, 1:27 AMenough-leather-70274
03/02/2021, 1:27 AMlittle-cartoon-10569
03/02/2021, 1:28 AMenough-leather-70274
03/02/2021, 6:01 AMlittle-cartoon-10569
03/02/2021, 7:55 PMenough-leather-70274
03/02/2021, 10:53 PMlittle-cartoon-10569
03/02/2021, 10:59 PMenough-leather-70274
03/02/2021, 11:05 PM