melodic-car-16900
10/01/2021, 7:44 PMboundless-tailor-35598
10/01/2021, 8:07 PMboundless-tailor-35598
10/01/2021, 8:07 PMboundless-tailor-35598
10/01/2021, 8:20 PMlittle-market-63455
10/02/2021, 7:11 PMmost-lighter-95902
10/02/2021, 11:55 PMCalling [toString] on an [Output<T>] is not supported.
most-lighter-95902
10/02/2021, 11:55 PMconst dbPassword = pulumi.interpolate`${config.requireSecret('db_password')}`
crooked-sunset-90921
10/03/2021, 4:22 AMcrooked-sunset-90921
10/03/2021, 4:23 AMlittle-market-63455
10/03/2021, 4:54 PMawsx.ec2.Vpc.getDefault().publicSubnetIds
I noticed that it always returns only exactly 2
subnets
Checking the code, I found this comment:
back compat. We always would just use the first two public subnets of the region we're in. So preserve that, even though we could get all of them here. Pulling in more than the two we pulled in before could have deep implications for clients as those subnets are used to make many downstream resource-creating decisions.But the documentation doesn't mention this which is a surprising behavior.
rapid-raincoat-36492
10/03/2021, 9:09 PMcrooked-pillow-11944
10/04/2021, 12:06 AMgithub = pulumi.StackReference(f"github-{environment}")
github_token = secrets.github("token")
os.environ['GITHUB_TOKEN'] = github_token
Is there any way to force the output to resolve before a github resource is requested?nutritious-australia-90040
10/04/2021, 7:25 AMrough-rain-68282
10/04/2021, 7:42 AMaws.ec2.SecurityGroupRule
this leads me to a problem where the newly created groups cannot be referenced in other groups using the name. The field
security_group_id
expects a sg id. Not sure how I can get that dynamically . Thankslemon-monkey-228
10/04/2021, 9:48 AMlemon-monkey-228
10/04/2021, 9:48 AMproduction
already existedlemon-monkey-228
10/04/2021, 9:55 AMsome-project-a_production
, some-project-b_production
etc.lemon-monkey-228
10/04/2021, 9:57 AMlemon-monkey-228
10/04/2021, 10:00 AMprojects
prometheus
Pulumi.yaml, Pulumi.prometheus-production.yaml, Pulumi.prometheus-staging.yaml
grafana
Pulumi.yaml, Pulumi.grafana-production.yaml, Pulumi.grafana-staging.yaml
rules
Pulumi.yaml, Pulumi.rules-production.yaml, Pulumi.rules-staging.yaml
able-doctor-68496
10/04/2021, 3:12 PMprops
Ā argument to theĀ ComponentResource
Ā constructor:Ā https://www.pulumi.com/docs/reference/pkg/python/pulumi/#the-pulumi-python-resource-model-1
My main questions about it are:
⢠When would I want to pass something to this props
Ā argument?
⢠What would I pass to that argument?
For example, currently Iām passing a Kubernetes namespace to a āparentāĀ ComponentResource
Ā that Iāve created. Iām passing it like so:
def __init__(..., namespace: Namespace, ...):
super().__init__(
...,
props={'namespace': namespace},
...
)
Is that the correct way to useĀ props
? My thinking was that this would let the Pulumi āengineā know that there is an ordering requirement between the namespace and myĀ ComponentResource
. Is that how it works? If not, then what areĀ props
Ā for?damp-accountant-65956
10/04/2021, 3:42 PMpulumi.StringInput
types in go? I know I could just make them a string
and validate them but there may be cases where they could be supplied by the end user or as an output from like a data source. So I wasn't sure how to validate them when they are pulumi.StringInput
values... do I need to do a .ToStringOutput().ApplyT()
and validate within the applier?damp-accountant-65956
10/04/2021, 4:39 PMApplyT
and return an error, things still seem to continue on... If i try and use the pulumi.Output
object returned by calling ApplyT
I don't see how to convert that back to an Input object?rapid-raincoat-36492
10/04/2021, 5:21 PMterraform.state.RemoteStateReference
is lovely, but it only lets me migrate over modules that no other terraform modules depend on (without using SSM as a intermediary step). If I could access Pulumi Stack outputs from Terraform, I would be able to migrate over any terraform module, making it a lot easier to switch oversparse-gold-10561
10/04/2021, 5:59 PMpurple-train-14007
10/04/2021, 8:20 PMlittle-market-63455
10/05/2021, 8:39 AMedit-pr-comment
has cases where it cannot detect earlier comments?
I have a RP with a lot of pushes/force-pushes and it keeps adding new comments. I am sure I have seen it work beforefast-oyster-42706
10/05/2021, 1:51 PMcuddly-lion-92829
10/05/2021, 3:18 PMfresh-wire-95028
10/05/2021, 5:43 PMconst fgService = new awsx.ecs.FargateService('blah', {
...
});
const autoScaleTarget = new aws.appautoscaling.Target(`appautoscaling-target-api-${stack}`, {
resourceId: `service/${apiClusterName}/${apiServiceName}`, <----- ???
});
alert-glass-49407
10/05/2021, 6:05 PMpulumi preview
output, do I need to create a component resource, or similar? Or is there something I can put into opts
that would give me control over the display?
edit: it turns out this is `parent`: <https://www.pulumi.com/docs/intro/concepts/resources/#parent>