great-gigabyte-39962
05/10/2024, 2:30 AMgreat-gigabyte-39962
05/10/2024, 2:32 AMgreat-sunset-355
05/10/2024, 5:07 AMgreat-gigabyte-39962
05/10/2024, 5:39 AMPulumi.yaml
and a pulumi up
command? I’m mainly just asking whether this is solvable.
As to language, this is a Python program. Pulumi isn’t the goal, it’s just a means to do some work within an existing Python framework.great-sunset-355
05/10/2024, 5:48 AMpulumi up
and Pulumi.yaml
(well kinda). Take a look at the automation api
- it is meant for programmatic control over the pulumi runtime.
You should find what you need even though some parity differences between languages may exist.
https://www.pulumi.com/docs/using-pulumi/automation-api/getting-started-automation-api/
https://www.pulumi.com/docs/using-pulumi/automation-api/concepts-terminology/
https://github.com/pulumi/automation-api-examplesgreat-gigabyte-39962
05/10/2024, 5:50 AMimport pulumi
from pulumi_aws import get_caller_identity
pulumi.runtime.set_config('aws:profile', 'control')
caller_identity = get_caller_identity()
OK. Well if I need pulumi.yaml and a pulumi command then I’m using the wrong tool.great-gigabyte-39962
05/10/2024, 5:52 AMgreat-gigabyte-39962
05/10/2024, 5:52 AMgreat-gigabyte-39962
05/10/2024, 5:57 AMgreat-sunset-355
05/10/2024, 5:58 AMboto
code did?
Pulumi can help you deploy resources, same as cloudformation, but much faster because Pulumi is defacto wrapper around terraform which uses AWS API.
I am usually trying to avoid programmatic control over AWS resources unless you can store the state somewhere. By state
I do not mean pulumi state but rather references to what is running. Eg. keep resource ARNs in DynamoDB. Then on top of that, you can build assertions. With lambda or similar things.great-gigabyte-39962
05/10/2024, 6:00 AMgreat-gigabyte-39962
05/10/2024, 6:03 AMgreat-gigabyte-39962
05/10/2024, 6:05 AMgreat-gigabyte-39962
05/10/2024, 6:06 AMgreat-gigabyte-39962
05/10/2024, 6:07 AMgreat-sunset-355
05/10/2024, 6:50 AMinitialize
(atm not properly documented) -> https://github.com/pulumi/pulumi-awsx/blob/master/awsx/ec2/vpc.ts#L68
so the idea could be -> query resources -> dynamically import into the state -> run the rest of the pulumi -> throw away the state.modern-zebra-45309
05/10/2024, 8:11 AMgreat-gigabyte-39962
05/10/2024, 4:20 PMso the idea could be -> query resources -> dynamically import into the state -> run the rest of the pulumi -> throw away the state.I’ll have to refactor things from the simple procedural approach I have now, but I could probably make this work. Thank you again!
great-gigabyte-39962
05/10/2024, 4:27 PMgreat-sunset-355
05/10/2024, 4:29 PMmodern-zebra-45309
05/10/2024, 5:24 PMgreat-gigabyte-39962
05/10/2024, 5:34 PMmodern-zebra-45309
05/10/2024, 5:44 PMgreat-gigabyte-39962
05/10/2024, 5:50 PMmodern-zebra-45309
05/10/2024, 5:54 PMgreat-gigabyte-39962
05/10/2024, 5:55 PMgreat-gigabyte-39962
05/10/2024, 5:56 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