abundant-carpenter-25244
05/08/2023, 9:49 PMpulumi import
by default updates the stackquick-king-51158
05/09/2023, 8:45 AMdry-kangaroo-89921
05/09/2023, 10:36 AMincalculable-motherboard-30384
05/10/2023, 10:25 AMauth0.Action
) and providing a list of dependencies, the list seems to be re-ordered on each refresh - which causes us to update the resource on each run. Is this a known issue? any way to bypass it?
Thanks!hallowed-table-61877
05/10/2023, 5:07 PMResourceOptions
via either the CLI or the Pulumi Cloud web UI? (Looking specifically for the ability to confirm whether a resource has retainOnDelete set, so if there’s a different way to do that, I’m all ears there too!)hallowed-table-61877
05/10/2023, 8:13 PMThe default is to inherit this value from the parent resourceIs this meant to imply that setting the option to true on an existing resource should cause the option to be set to true on its children, or is it something more nuanced like “those children won’t be deleted because the parent won’t be deleted, even if
pulumi preview
labels them delete
rather than delete[retain]
“?
(As far as I can tell, neither of these is true—children seem to be “really” deleted even if their parent resource has the option set.)flaky-arm-38472
05/11/2023, 7:54 AMsparse-gold-10561
05/11/2023, 2:34 PMvpc = awsx.ec2.Vpc(
resource_name=vpc_name,
cidr_block="10.210.0.0/16",
number_of_availability_zones=6,
subnet_specs=[
awsx.ec2.SubnetSpecArgs(
type=awsx.ec2.SubnetType.PRIVATE,
),
awsx.ec2.SubnetSpecArgs(
type=awsx.ec2.SubnetType.PUBLIC,
),
awsx.ec2.SubnetSpecArgs(type=awsx.ec2.SubnetType.ISOLATED, cidr_mask=28, name="tgw"),
],
nat_gateways=awsx.ec2.NatGatewayConfigurationArgs(strategy=awsx.ec2.NatGatewayStrategy.SINGLE),
enable_dns_hostnames=True,
)
continues to receive The following subnets overlap with at least one other subnet. Make the CIDR for the VPC larger....
brash-gigabyte-81569
05/11/2023, 2:44 PMvcs.kind
, vcs.owner
, and vcs.repo
. But I am not clear on what other metadata it might use to make the Pulumi Github App update the PRs and Commits. Reason I am asking is that the code in Pulumi relies on there being a .git
directory to fetch this data and I would like to potentially allow it to fall back to env vars for this information.mammoth-camera-90962
05/12/2023, 4:11 AMpulumi up
(taking up to hours longer than I would expect).
I'll see a number (say 20, but I haven't counted the exact number) resources being provisioned at once, 19 of which are quick to provision (e.g. s3 bucket) and one of which takes a long time (e.g. RDS instance).
There are many other resources in the stack that need to be provisioned, which don't depend on the RDS instance in any way, and may or may not depend on the 19 s3 buckets.
I would expect that at any given time I would have 20 provisioning operations running at once (as the dependency graph allows), and as the s3 buckets provision that the provisioning operation of another resource would take it's place. However what seems to happen is that the engine waits for all 20 resources in this batch to finish provisioning before starting a new batch of 20, regardless of what the dependency graph would allow.
Is this expected? Is it due to how the engine runs and waits on resource creation?lemon-monkey-228
05/12/2023, 6:51 AM<resource>.get(…)
and even when using { dependsOn: […] }
, these functions still explode if the resource doesn’t exist 😞
I want to be able to use a CRD inside a ComponentResource then wait for the resulting resources to exist and expose them as properties on the ComponentResourcebitter-twilight-16606
05/12/2023, 8:00 AM~ siteConfig: {
~ appSettings: [
~ [18]: {
~ value: [secret] => [secret]
}
~ [21]: {
~ value: [secret] => [secret]
}
]
}
How can I find out what values are going to be changed? It would be good to at least know the appSettings keys, but there doesn't seem to be a way to get any more info than this.orange-beard-91234
05/12/2023, 12:41 PMtall-crowd-93084
05/12/2023, 1:12 PMconst renderEnvCmd = new command.local.Command(`${customer.subDomain}-env`, {
create: `
mkdir -p ansible/${customer.subDomain} && \
cat ansible/env.tmpl | envsubst > ansible/${customer.subDomain}/.env`,
environment: {
...secrets,
...postGres,
BASE_PATH,
anonJWT,
serviceJWT,
smtpPass: cfg.requireSecret("sendinblueSMTP"),
fqdn: customerDNS,
},
});
I'm not sure why, but my .env files aren't being regenerated... Do I have to wire this up in any particular way to make sure the command is evaluated/exectued?clever-glass-42863
05/12/2023, 3:54 PMAWS.AppAutoScaling.Policy
for an ECS service. This generates a MetricAlarm in cloudwatch automatically. Is there a way to specify the Tags for the underlying MetricAlarm that is generated? There is no Tags property exposed for the Policy itself or any of the configuration properties. Using dotnet with Pulumi.Aws 5.18.0. Example code below of how the policy is configured for example:
var autoScalePolicy = new AutoScaling.Policy($"{resourceIdentityPrefix}-asp", new AutoScaling.PolicyArgs
{
PolicyType = "TargetTrackingScaling",
TargetTrackingScalingPolicyConfiguration = new AutoScaling.Inputs.PolicyTargetTrackingScalingPolicyConfigurationArgs
{
PredefinedMetricSpecification = new AutoScaling.Inputs.PolicyTargetTrackingScalingPolicyConfigurationPredefinedMetricSpecificationArgs
{
PredefinedMetricType = "ECSServiceAverageCPUUtilization"
},
TargetValue = 65.0,
ScaleInCooldown = 60,
ScaleOutCooldown = 60
},
ScalableDimension = autoScaleTarget.ScalableDimension,
ServiceNamespace = autoScaleTarget.ServiceNamespace,
ResourceId = autoScaleTarget.ResourceId
// How do we define Tags? There is no Tags property
});
many-television-17079
05/13/2023, 1:52 AMrg-my-resourcegroup
it will become something like rg-my-resourcegroupxxxxxxxx
(without an extra hyphen). So I need to name my resource rg-my-resourcegroup-
, and I hate the extra hyphen in the pulumi names, specially because not all resources use a suffix, so the URNs become a mess. Using pulumi/random is not a solution, since I need a new name when something needs to be deleted/recreated and by design the random naming is persisted between runs (which is good for the library purposes, but bad for circumventing the issue here).
Any tips on overriding this feature to achieve this?clever-soccer-98174
05/13/2023, 1:55 PM0.3.0
. When I destroy and re-create again, I started to get following
error: 1 error occurred:
* Error creating S3 bucket: InvalidBucketAclWithObjectOwnership: Bucket cannot have ACLs set with ObjectOwnership’s BucketOwnerEnforced setting
status code: 400,
When I update package to version 0.4.0
, all good but when page is redirected to some another page via react-router-dom, I’m getting :
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>FG18GJN5BRXRSTYC</RequestId>
<HostId>8ue6Jq4q0jx3M5K5IkEVMCUr3kGvvz8gaYwJ7mzOXXKqpqqw5vxKlSBednksWU5Xkm2LN6m6Uk4=</HostId>
</Error>
Any idea how can I proceed to solve this problem? Thanks!prehistoric-house-26852
05/14/2023, 1:06 AMpassword, err := random.NewRandomPassword(ctx, "password", &random.RandomPasswordArgs{
Length: <http://pulumi.Int|pulumi.Int>(PasswordLength),
Special: pulumi.Bool(true),
OverrideSpecial: pulumi.String("!#$%&*()-_=+[]{}<>:?"),
})
if err != nil {
return nil, err
}
args.Password = password.Result
user, err := kafka.NewUserScramCredential(ctx, fmt.Sprintf("%s", args.Username), args, pulumi.Provider(provider))
if err != nil {
return nil, err
}
ctx.Export("id", user.ID())
ctx.Export("updatedAt", pulumi.StringPtr(fmt.Sprintf("%d", time.Now().Unix())))
ctx.Export("password", password.Result)
For our usecase, we want to export this to context. However, it seems the passowrd.Result is rendered as [secret] instead of the actual string. Is there a way to get the actual string?
I also tried
password.Result.ApplyT(func(pwd string) error {
ctx.Export("password", pulumi.String(pwd))
return nil
})
but this does not seem get executed at allpolite-scientist-28869
05/14/2023, 11:08 AMerror: fatal: failed to Init GRPC to register RPC handlers: failed to create resource provider: ProviderInfo needs a semver-compatible version string, got info.Version=""
pulumi:providers:cloudflare (myCloudflare):
error: could not read plugin [/home/myProfileName/.pulumi/plugins/resource-cloudflare-v5.1.0/pulumi-resource-cloudflare] stdout: EOF
Things I checked:
• When I do pulumi pulumi plugin ls
, I get:
NAME KIND VERSION SIZE INSTALLED LAST USED
cloudflare resource 5.1.0 45 MB 10 hours ago 10 hours ago
docker resource 4.2.0 45 MB 2 days ago 2 days ago
gcp resource 6.55.1 138 MB 18 hours ago 18 hours ago
kubernetes resource 3.27.1 89 MB 18 hours ago 18 hours ago
random resource 4.13.0 72 MB 2 days ago 2 days ago
• My package.json
also seems to have the matching version for this file:
{
"name": "infastructure",
"scripts": {
"format": "npx prettier --config ../.prettierrc.json --write ."
},
"devDependencies": {
"@types/node": "^16",
"prettier": "2.8.8"
},
"dependencies": {
"@pulumi/cloud": "^0.30.1",
"@pulumi/cloudflare": "5.1.0",
"@pulumi/docker": "^4.2.0",
"@pulumi/gcp": "^6.39.0",
"@pulumi/kubernetes": "^3.26.0",
"@pulumi/pulumi": "^3.0.0",
"@pulumi/random": "^4.13.0",
"typescript": "^4.0.0"
}
}
• The file exists at the directory specified above
• I also tried reinstalling the plugin, and attempting to override it in the Pulumi.yaml file
• This is how I'm trying to create the provider:
import * as pulumi from '@pulumi/pulumi';
import * as cloudflare from '@pulumi/cloudflare';
const cloudflareProvider = new cloudflare.Provider('myCloudflare', {
email: [redacted, hardcoded string with email],
apiKey: [redacted, hardcoded string with API key],
});
brief-pillow-16455
05/14/2023, 4:34 PMbored-guitar-91046
05/15/2023, 3:58 AMhigh-grass-3103
05/15/2023, 8:32 AMResourceError: Do not supply 'providers' option to a CustomResource. Did you mean 'provider' instead?No, I actually meant
providers
, why would you have a problem with it?
I have a component that creates resources from different providers, one of them is a non-default kubernetes provider. I don't want to create AWS resources with the kubernetes provider, nor Kubernetes resources with AWS provider...
Isn't that what providers
is for?
export interface ComponentResourceOptions extends ResourceOptions {
/**
* An optional set of providers to use for child resources. Either keyed by package name (e.g.
* "aws"), or just provided as an array. In the latter case, the package name will be retrieved
* from the provider itself.
*
* Note: only a list should be used. Mapping keys are not respected.
*/
providers?: Record<string, ProviderResource> | ProviderResource[];
gentle-parrot-38349
05/15/2023, 9:33 AMCustomResourceOptions
specifies "_The inputs to the resource's constructor must align with the resource's current state_". A discrepancy here causes error: inputs to import do not match the existing resource
.
To achieve my goal, I need my Pulumi program to be the source of truth, applying and overriding any discrepancy that may exist. Can this be done through Pulumi at all, or would I have to for example use the MS Graph API to update the AD App before importing it? Thus avoiding the do not match
. Thank you ❤️happy-advantage-79856
05/15/2023, 4:42 PMerror: Error serializing function 'customMessage': index.ts(192,22)
function 'customMessage': index.ts(192,22): which could not be serialized because
Could not find [[Scopes]] property
Function code:
function customMessage(event, context) {
var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
console.log('event', event);
if (event.triggerSource === "CustomMessage_AdminCreateUser") {
...
The Original Code:
export const customMessageLambda = new aws.lambda.CallbackFunction(
`customMessage-lambda-${stack}`, { callback: customMessage }
);
The Working Code:
export const customMessageLambda = new aws.lambda.Function(
`customMessage-lambda-new`,
{
code: new pulumi.asset.FileArchive('./customMessage.zip'),
role: 'arn:aws:iam::617706700270:role/lambdaRole-20db8e5',
handler: 'customMessage.handler',
runtime: 'nodejs12.x',
}
);
crooked-laptop-67565
05/16/2023, 12:17 AMpulumi stack rename
to rename a project (eg pulumi stack rename org/new-name/dev
) and I'm getting an error error: [403] You do not have permission to perform this operation.
I've tried pulumi logout
and pulumi login
and still getting the error. This is a project that I created on this machine a few hours ago. In the meantime I did have to remove homebrew and reinstall it, but not sure how that could be causing an issue as pulumi up
is working fine.
Adding -v=
for verbose logging doesn't yield any additional outputechoing-fall-59017
05/16/2023, 5:57 AM* Error creating DNS RecordSet: googleapi: Error 400: Invalid value for 'entity.change.additions[_<http://acme-challenge.gcp.foo.bar.io|acme-challenge.gcp.foo.bar.io>.][CNAME].name': '_<http://acme-challenge.gcp.foo.bar.io|acme-challenge.gcp.foo.bar.io>.', invalid
I redacted some data from the code but it should be pretty similar
Did anyone encounter such issue before? Or knows what this means? Documentation about it is pretty bleakhappy-restaurant-7163
05/16/2023, 8:21 AMcool-vr-43155
05/16/2023, 9:19 AMhappy-pencil-75222
05/16/2023, 11:40 AMpolite-napkin-90098
05/16/2023, 4:48 PM// Create the launch template that uses the instance profile and IAM role
const launchTemplate = new aws.ec2.LaunchTemplate("launchTemplate", {
imageId: "ami-0c94855ba95b798c7", // Replace with the desired AMI ID
instanceType: "t2.micro", // Change to desired instance type
instanceProfileName: instanceProfile.name,
// Additional launch template settings can be added here, such as security groups
});
uses instanceProfileName, which the compiler complained about and the docs say doesn't exist.
There is iamInstanceProfile which takes an arn, so I was able to make it work.
I'm not complaining, I do find the AI to be useful, but it is worth noting that its code needs checking.