enough-house-68209
09/20/2022, 10:40 AMType Name Plan Info
+ pulumi:pulumi:Stack cloud_func-dev create
+ ├─ gcp:storage:Bucket cf_demo_bucket create
+ ├─ gcp:storage:BucketObject eta_demo_object create
└─ gcp:cloudfunctions/functions:Function eta_demo_function 1 error
Diagnostics:
gcp:cloudfunctions/functions:Function (eta_demo_function):
error: unrecognized resource type (Check): gcp:cloudfunctions/functions:Function
gorgeous-accountant-60580
09/20/2022, 1:57 PMmodern-evening-83482
09/20/2022, 4:33 PMcurved-hair-82998
09/21/2022, 7:46 AMtf2pulumi --target-language go
error: rpc error: code = Unimplemented desc = GetSchema is not yet implemented
busy-daybreak-12707
09/21/2022, 9:29 AMsteep-lock-88842
09/21/2022, 3:18 PMpulumi up
command to create the key followed by a pulumi stack change-secrets-provider
, am i understanding that correctly?fancy-xylophone-7581
09/21/2022, 4:05 PM(async () => {
publicSubnets = await vpc.publicSubnets;
publicSubnets.forEach(
sub => {
// console.log(sub.id);
new aws.ec2.Tag('',{
resourceId: sub.id,
key: '<http://kubernetes.io/role/elb|kubernetes.io/role/elb>',
value: '1'
});
}
);
})();
gorgeous-accountant-60580
09/21/2022, 5:41 PMauthorization.GetClientConfig
call, as that is a provider function on the azure-native provider. That is, it can be handled in the Call()
function as defined in the unit testing documentation.
The code I have for calling the Azure SDK is in an ApplyT. Is it possible to intercept this as well, and specify the return value in a similar way as with the provider functions, or will I have to handle this by creating an interface I can mock?colossal-belgium-59643
09/21/2022, 10:00 PMerror: could not get cloud url: could not load current project: 1 error occurred:
* #/options/refresh: expected boolean, but got string
lemon-vase-32091
09/22/2022, 7:27 AMsparse-gold-10561
09/22/2022, 2:06 PMARN of the SQS queue specified as the target for the dead-letter queue.
. However, I am trying to set it as a ECS target and I'm a bit confused as to if the documentation is wrong or if I really need a SQS DQL for an ECS target? Any advice would be great. thanks!full-artist-27215
09/22/2022, 6:03 PMtrue
whenever I create one of these repositories (in particular, the xray_index
property: https://www.pulumi.com/registry/packages/artifactory/api-docs/localgenericrepository/#xray_index_python). I know that I can explicitly check the type of the resource first and then see if the property is set:
if args.resource_type in ["artifactory:index/localGenericRepository:LocalGenericRepository", ...]:
if not args.props.get("xrayIndex"):
report_violation(...)
However, I was wondering if it would instead be possible to just see if the resource had an xrayIndex
property (without listing out all the resource types explicitly). However, it only appears that I have access to whatever properties happen to have been set on the concrete resource. Since this particular boolean property defaults to false
, this makes any resources that are in violation "invisible" to this kind of checking logic.
Is there any way in a policy to see all the possible properties a resource could have, rather than just the ones that have been set on any given instance?
After typing this out, I think I may end up sticking with the more explicit approach, but now I'm curious 😅proud-nail-99860
09/22/2022, 11:32 PMcolossal-caravan-76991
09/23/2022, 9:29 AMclean-salesclerk-32849
09/23/2022, 8:47 PM> $ pulumi new error: could not get cloud url: could not load current project: 1 error occurred:
* #/config: expected string or null, but got object
I upgraded pulumi and switched to a new network. Any suggestiosn?late-lizard-19909
09/23/2022, 8:50 PMcolossal-vr-62639
09/26/2022, 6:16 AMmy-{pre-prod or prod}-project/{resource-collection}-1
• my-project/{pre-prod or prod}-{resource-collection}-1
Anyone have any views on this they don't mind sharing?stocky-father-68249
09/26/2022, 6:26 AMrhythmic-whale-48997
09/26/2022, 6:44 AMadamant-father-26302
09/26/2022, 7:28 AMproud-art-41399
09/26/2022, 9:30 AMpulumi/actions@v3
parameters are as follows:
with:
command: up
refresh: true
stack-name: ***
work-dir: infra
cloud-url: s3://***
comment-on-pr: false
github-token: ***
parallel: 2147483647
target-dependents: false
upsert: false
edit-pr-comment: true
pulumi-version: ^3
color: auto
env:
AWS_DEFAULT_REGION: ***
AWS_REGION: ***
AWS_ACCESS_KEY_ID: ***
AWS_SECRET_ACCESS_KEY: ***
AWS_SESSION_TOKEN: ***
pythonLocation: /opt/hostedtoolcache/Python/3.8.13/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.13/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.13/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.13/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.13/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.13/x64/lib
PULUMI_CONFIG_PASSPHRASE: ***
I was able to track this down to happen somewhere between Pulumi CLI v3.39.1 (produces output) and v3.39.3 (doesn't produce output). I looked at release notes (https://github.com/pulumi/pulumi/releases) but couldn't find anything relevant. It happens both for Pulumi programs written in Python and TypeScript, if that is important. Anyone has a clue what to try next?gorgeous-accountant-60580
09/26/2022, 10:17 AMcolossal-vr-62639
09/26/2022, 12:48 PMpulumi stack init
on an existing stack, is there a way to ignore the fact that it already exists?
Use case: Looking at a way to create stacks on the fly without needing to do a lookup of sorts before issuing an init
.lively-crayon-44649
09/26/2022, 12:57 PMlocal.Command
every time a set of files on the local filesystem changes. I think this is the use of the triggers
argument to local.Command
, but am wondering what the best thing to pass here is. It is a hash of the files that I construct myself? I was hoping Pulumi would have something here, but the asset and archive classes for instance don't appear to expose any methods or paths in that vein. All suggestions welcome!future-window-78560
09/26/2022, 5:25 PMbucket01
in <mailto:gcpacc11@gmail.com|gcpacc11@gmail.com>
and bucket01
in <mailto:gcpacc22@gmail.com|gcpacc22@gmail.com>
especially when <mailto:gcpacc11@gmail.com|gcpacc11@gmail.com>
is deleted
I get this error so I have to change the bucket name in the script every time which is a manual step in the automation process and we need to avoid that
googleapi: Error 409: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again., conflict
-----------------------------------------------
Also, Team!!
2. We need to know if creating a new GCP project is possible without specifying any project_ID in the pulumi script?
Our purpose is to have a console-free IAC which is possible through pulumi but we have to create a GCP project manually first because we need a project ID as input for creating a new GCP project.steep-lock-88842
09/26/2022, 9:33 PMGCP CloudRun
service, but as specified in the docs, unless you specify a ServiceTemplateSpec serviceAccountName
it will use the default cloud engine service account which has Editor permissions and therefore gets a permission denied on SecretManager resources for example. I’m setting my service account credentials in my stack config file through the gcp:credentials
value.
Any help or tips would be greatly appreciated!future-barista-4090
09/27/2022, 7:22 AMrhythmic-branch-12845
09/27/2022, 9:55 AMpulumi up -r
, I keep seeing “diffs”, even if nothing has changed in the underlying infrastructure?
Previewing update (dev)
View Live: <https://app.pulumi.com/><redacted>/<proj>/dev/previews/<id>
Type Name Plan Info
pulumi:pulumi:Stack proj-dev
├─ aws:ec2:LaunchTemplate aaaaa [diff: ~vpcSecurityGroupIds]
├─ aws:lb:TargetGroup api
├─ aws:autoscaling:Group aaaaa [diff: ~launchTemplate,vpcZoneIdentifiers]
├─ aws:ec2:LaunchTemplate api [diff: ~vpcSecurityGroupIds]
├─ aws:lb:TargetGroup aaaaa
└─ aws:autoscaling:Group api [diff: ~launchTemplate,vpcZoneIdentifiers]
Resources:
7 unchanged
When I select details
, I get this:
Do you want to perform this update? details
pulumi:pulumi:Stack: (same)
[urn=urn:pulumi:dev::proj::pulumi:pulumi:Stack::proj-dev]
~ pulumi:pulumi:Stack: (refresh)
[urn=urn:pulumi:dev::proj::pulumi:pulumi:Stack::proj-dev]
~ aws:autoscaling/group:Group: (refresh)
[id=api]
[urn=urn:pulumi:dev::proj::aws:autoscaling/group:Group::api]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:autoscaling/group:Group: (refresh)
[id=aaaaa]
[urn=urn:pulumi:dev::proj::aws:autoscaling/group:Group::aaaaa]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:lb/targetGroup:TargetGroup: (refresh)
[id=arn:aws:elasticloadbalancing:ap-southeast-1:<aws_id>:targetgroup/aaaaa/8e2bbbab0efedbad]
[urn=urn:pulumi:dev::proj::aws:lb/targetGroup:TargetGroup::aaaaa]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:lb/targetGroup:TargetGroup: (refresh)
[id=arn:aws:elasticloadbalancing:ap-southeast-1:<aws_id>:targetgroup/api/df555747b8eaeb92]
[urn=urn:pulumi:dev::proj::aws:lb/targetGroup:TargetGroup::api]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:ec2/launchTemplate:LaunchTemplate: (refresh)
[id=lt-09afb8d3b2f6ae9ac]
[urn=urn:pulumi:dev::proj::aws:ec2/launchTemplate:LaunchTemplate::aaaaa]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
~ aws:ec2/launchTemplate:LaunchTemplate: (refresh)
[id=lt-0b38e76b0e7b3a1e9]
[urn=urn:pulumi:dev::proj::aws:ec2/launchTemplate:LaunchTemplate::api]
[provider=urn:pulumi:dev::proj::pulumi:providers:aws::default_5_10_0::ec8eab8a-ed6a-4102-ba45-8538c78b7cf8]
swift-apple-16812
09/27/2022, 11:42 AMpulumi stack import
, because I don't have a stack state file like that,
• I can't use pulumi up
, because that wants to create things that already exist,
• I can't use pulumi refresh
, because it (apparently) doesn't care what I've declared, only what's in the stack state file.
• I refuse to believe that the idea is to manually import each resource again, like a peasant.
I should also point out that it would be nice if nomenclature and docs could be clearer on what's a resource in a program, in a stack state and with the actual cloud provider, at least two of these are very different, right?clean-football-9795
09/27/2022, 11:57 AMclean-football-9795
09/27/2022, 11:57 AMlimited-rainbow-51650
09/27/2022, 12:05 PMInline Program
examples here: https://github.com/pulumi/automation-api-examplesclean-football-9795
09/27/2022, 3:11 PM