white-cat-90296
11/01/2021, 3:11 PMawsx
package.
When creating an API gateway, it seems like the Integration Request
Lambda is configured correctly with the right ARN, however, there is no Execution Role
listed. That field is left empty and we have to configure it manually. Do you know how could we automatically set the execution role for the integration request?
Here's the creation of the API Gateway for your reference:
const api = new awsx.apigateway.API('api-name', {
routes: [{
path: "/targetpath",
method: "ANY",
eventHandler: lambda,
}]
...
able-camera-57198
11/01/2021, 3:56 PMyaml
file is created for it in my project. I generally don't like to keep environment specific information in source control. Is there any other way to manage stack configurations in pulumi?wooden-receptionist-75654
11/01/2021, 4:47 PMconst azure = authorization.getClientConfig();
const subscriptionId = azure.then(azure => azure.subscriptionId)
new authorization.RoleAssignment("ass", {
principalId: kprincipalId,
principalType: "ServicePrincipal",
roleDefinitionId:
`/subscriptions/${subscriptionId}/providers/Microsoft.Authorization/roleDefinitions/${id}`,
scope: resourceGroup.id,
});
And I’m still got [object Promise]
for subscriptionId. What I’m missing?boundless-angle-56560
11/01/2021, 6:27 PMbrave-nightfall-19158
11/01/2021, 7:01 PMbrave-nightfall-19158
11/01/2021, 7:01 PMgentle-rocket-97330
11/01/2021, 9:10 PMpulumi up
and during the preview stage I get the error message “error: Preview failed: unable to delete resource... ...as it is currently marked for protection. To unprotect the resource, either remove the protect
flag from the resource in your Pulumi program and run pulumi up
or...“.
I don’t want to delete it; I want to adopt it. Can anyone help me understand why preview seems to be trying to delete a protected/imported resource?little-soccer-5693
11/01/2021, 9:55 PMfreezing-van-87649
11/02/2021, 12:43 AMPULUMI_SELF_MANAGED_STATE_LOCKING
?
Wondering about the status of making that a default https://github.com/pulumi/pulumi/issues/6536fierce-engine-31599
11/02/2021, 7:36 AMclever-painter-96148
11/02/2021, 9:40 AMbored-barista-23480
11/02/2021, 1:01 PM'dict' object has no attribute 'core'
(I am using cluster.core
as an input of the managed node group). The exported resource is of type pulumi_eks.Cluster
. I used imports from other projects before and it worked without a problem. What could be wrong?able-camera-57198
11/02/2021, 5:18 PMable-camera-57198
11/02/2021, 5:18 PMList
, etc... ?bulky-policeman-29913
11/02/2021, 6:09 PMable-camera-57198
11/03/2021, 1:05 AMbrave-afternoon-91593
11/03/2021, 3:46 AM/lib/**/*.ts
, then install it by adding something like "lib": "file:../lib"
to my package.json
in each of the other directories. However, I don’t want this lib to define provider versions, rather I’d like the lib’s package.json
to simply reference peerDependencies
of the referenced Pulumi providers. However, when I do this, pulumi fails to preview thanks to error TS2307: Cannot find module '@pulumi/aws|kubernetes'.
This is probably just a Typescript question, but surely there’s a way to tell typescript that the types referenced in the libs should refer to the types defined in the project package.json.brash-airline-37413
11/03/2021, 3:51 AMpulumi plugin install resource $name $version -f mydist.tar.gz
However once installed I don’t understand what the point of installing it as a package is since doing that alone doesn’t let me import the component resources that are declared in that package.
Is the point of pulumi plugin install resource …
to allow the component resources to be imported in my language of choice or am I still expected to import via nuget/npm/pip etc as well?tall-beard-99429
11/03/2021, 9:45 AMpulumi preview
locally I get 196 unchanged, if I run it in my CI (exact same command), I get - 58 to delete, 138 unchanged. Any ideas why this would happen?brash-vr-21201
11/03/2021, 9:57 AMmost-lighter-95902
11/03/2021, 3:35 PMsteep-portugal-37539
11/03/2021, 4:08 PMdependsOn
on the ingresses to be be [ALB, ED]
so that pulumi understands that the ingresses have a dependency on these 2 Helm charts. It doesn’t seem to completely have helped.
A delay option would be nice, because then the 2 Helm charts can delete the resources within the given delay time, and only then be removed from the cluster.bored-barista-23480
11/03/2021, 4:14 PM'dependsOn' was passed a value that was not a Resource.
I'm unable to find any helpful explanation where the error comes from and most important how to solve it.future-refrigerator-88869
11/03/2021, 11:43 PMpulumi preview
as part of a github action and keeps complaining about not finding the eks provider:
error: no resource plugin 'eks' found in the workspace or on your $PATH
In my package.json as part of dependencies i have eks "@pulumi/eks": "^0.34.0"
. This seems to be working locally but in the actions it fails.
As part of the npm install
in CI, I can see that the other pulumi packages that I use (for example cloudflare) are getting registered as part of npm install, however EKS package does not produce any log. Any ideas ?little-cartoon-10569
11/03/2021, 11:49 PMred-football-97286
11/04/2021, 8:49 AMdeleteOnTermination
to false (as I want to keep the eni on deletion of the ec2. To do with an app license). But running pulumi destroy
removes the eni. If I terminate through the console, the eni remains.
Is there a way I can remove everything apart from the eni? (protect
prevents deletion of the whole stack).sparse-spring-91820
11/04/2021, 10:10 AMpurple-keyboard-34401
11/04/2021, 10:51 AMpulumi preview
i got some of the old resources in yellow…my question is those resource will get modified?blue-pharmacist-31672
11/04/2021, 12:05 PMpulumi up
command from a different directory than the one your project is stored in? I'm trying something like
pulumi up ./path/to/project
Where my stack yaml and pulumi yaml are stored. However, pulumi starts asking me for the project name and description when I do this rather than running the existing one and then errors with a no file or directory
.
I've tried specifying using the --stack
flag or using the file://
system specifier but no luck. Any ideas always appreciated. Thanks 😄prehistoric-activity-61023
11/04/2021, 4:12 PMpulumi import
(btw, I might have discovered a small bug but first need to run some tests to make sure it’s something worth reporting) and I came across one issue: is it possible to simply list all defined resources with their URNs (so I can remove them using pulumi state delete
) or the only way to do that right now is to manually parse pulumi stack export
?
EDIT: the answer is pulumi stack --show-urns