bumpy-yak-84133
04/08/2023, 9:46 AMTo create a target group manually, callHowever, the ALB instance created fromon the load balancer, or allocate acreateTargetGroup
orNetworkTargetGroup
by hand. When doing so, the following additional options are available:ApplicationTargetGroup
awsx.lb.ApplicationLoadBalancer
does not have the createTargetGroup
function.
How should I manually create the target group for an ALB?bumpy-yak-84133
04/08/2023, 10:31 AMApplicationLoadBalancer
from the awsx.lb.ApplicationLoadBalancer
package. I could see that I can declare the listeners
directly when I create a new instance of the awsx.lb.ApplicationLoadBalancer
, but I can only define the defaultActions
to forward to a target group. How do I add path rules forwarding to another target group in the listeners of my ALB?sparse-intern-71089
04/09/2023, 1:04 AMpowerful-lighter-63321
04/09/2023, 5:26 AMsubnetId := stackRef.GetOutput(pulumi.String(name)).AsIDOutput()
It ends up with an:
panic: interface conversion: interface {} is string, not pulumi.ID
I've exported it this way:
ctx.Export(name, subnet.ID())
The exported ID is something like: 2545501-10.10.1.0/24 As such, it's truely a string. :)brief-car-60542
04/10/2023, 5:26 AMsparse-intern-71089
04/10/2023, 1:19 PMlate-petabyte-3251
04/11/2023, 12:16 AMstrong-match-67698
04/11/2023, 5:24 AMbitter-kilobyte-77804
04/11/2023, 4:29 PMbrash-laptop-95094
04/11/2023, 5:05 PMbrief-zebra-95235
04/12/2023, 12:26 PMrequired_resource_access
is inside the application block, so no way to grant permission to the app I was creating.
Looks like Pulumi has the same problem, does it?sparse-branch-46500
04/12/2023, 12:33 PMpulumi/actions@v3
and I am getting FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
in pulumi cloud logs. any thoughts?stocky-petabyte-29883
04/12/2023, 2:55 PMexport const cluster = new eks.Cluster(`${stack}-eks-cluster`, {
name: `${stack}-eks-cluster`,
skipDefaultNodeGroup: true,
version: eksConfig.version,
createOidcProvider: true,
privateSubnetIds: vpc.privateSubnetIds,
publicSubnetIds: vpc.publicSubnetIds,
deployDashboard: false,
storageClasses: eksConfig.volumeType,
vpcId: vpc.id,
useDefaultVpcCni: true,
instanceRoles: [role],
nodeAssociatePublicIpAddress: false,
kubernetesServiceIpAddressRange: eksConfig.kubernetesServiceIpAddressRange,
tags: {
Environment: stack,
}
});
eksConfig.nodegroup.forEach((nodeGroupDetail, index) => {
eks.createManagedNodeGroup(`${stack}-managed-ng-${index}`, {
cluster: cluster,
nodeGroupName: `${stack}-managed-ng-${index}`,
capacityType: nodeGroupDetail.capacityType,
instanceTypes: [nodeGroupDetail.type],
scalingConfig: {
desiredSize: nodeGroupDetail.desiredCapacity,
minSize: nodeGroupDetail.minSize,
maxSize: nodeGroupDetail.maxSize,
},
labels: Object.fromEntries(nodeGroupDetail.labels.map(({ key, value }) => [key, value])),
nodeRole: role,
}, cluster);
});
I am expecting the nodes in the node group to use the private subnets, however it aint working that way.
Am I missing something here?bitter-france-47214
04/12/2023, 8:45 PM"module": "es2020",
in tsconfig.json
(along with allowJs
and checkJs
set to true
), it fails with the following output in the bash terminal:
err?: Error: Command failed with exit code 255: pulumi up --yes --skip-preview --exec-kind auto.local --stack dev --non-interactive
Updating (dev)
…
pulumi:pulumi:Stack (loremipsum):
error: Running program '/Users/loremipsum/stacks/server/' failed with an unhandled exception:
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/loremipsum/stacks/server/index.js from /Users/loremipsum/node_modules/@pulumi/pulumi/cmd/run/run.js not supported.
…
code: 'ERR_REQUIRE_ESM'
I use es modules throughout the package, there is no require()
I use. But the run.js
from @pulumi/pulumi
is using require()
.
How can I fix this?delightful-monkey-90700
04/12/2023, 9:22 PM+ cd pkg
+ go install -ldflags '-X <http://github.com/pulumi/pulumi/pkg/v3/version.Version=0.1.0-alpha.1673497087+g4996550f|github.com/pulumi/pulumi/pkg/v3/version.Version=0.1.0-alpha.1673497087+g4996550f>' <http://github.com/pulumi/pulumi/pkg/v3/cmd/pulumi|github.com/pulumi/pulumi/pkg/v3/cmd/pulumi>
# <http://github.com/pulumi/pulumi/pkg/v3/backend/filestate|github.com/pulumi/pulumi/pkg/v3/backend/filestate>
backend/filestate/backend.go:121:24: undefined: atomic.Pointer
backend/filestate/backend.go:385:18: undefined: atomic.Int64
backend/filestate/backend.go:388:19: undefined: atomic.Int64
Has anyone run into this ?calm-crayon-13781
04/13/2023, 4:21 AMcalm-crayon-13781
04/13/2023, 4:22 AMcalm-crayon-13781
04/13/2023, 4:23 AMcalm-crayon-13781
04/13/2023, 4:24 AMcalm-crayon-13781
04/13/2023, 4:26 AMpowerful-lighter-63321
04/13/2023, 6:23 AMancient-nightfall-54764
04/13/2023, 6:59 AMxssMatchStatement: {
fieldToMatch: {
body: {
oversizeHandling: "CONTINUE",
},
},
textTransformations: [
{
priority: 0,
type: "URL_DECODE",
},
{
priority: 1,
type: "HTML_ENTITY_DECODE",
},
],
},
},
But when I run the pulumi, there was something error like ’ “error: awswafv2/ruleGroupRuleGroup resource ‘Managed-AllowCrossSiteScriptingBody’ has a problem: Invalid or unknown key. Examine values at ‘RuleGroup.Rules’.” Thank you in advancefancy-artist-45287
04/13/2023, 11:05 AMerror: an unhandled error occurred: Program exited with non-zero exit code: -1
when running pulumi up --yes --diff --refresh --non-interactive --skip-preview --logflow
exiting early, running the pipeline again and it works...red-airline-54646
04/13/2023, 12:58 PMDEBUG
stdout showing. weird coz debug mode is not even enabledambitious-father-68746
04/13/2023, 1:11 PMbrief-zebra-95235
04/13/2023, 2:15 PMGetClientConfigResult current = await GetClientConfig.InvokeAsync();
var aadProvider = new Provider(
name: "AadB2cProvider",
args: new ProviderArgs {
TenantId = tenant.Id,
MetadataHost = "<http://management.azure.com|management.azure.com>"
});
var appRegistration = new Application(
name: Environment.Value.GloballyUniqueName,
args: new ApplicationArgs {
DisplayName = env.GloballyUniqueName,
IdentifierUris = $"api://{env.GloballyUniqueName}.<http://azurewebsites.net|azurewebsites.net>",
Owners = new[] {
current.ObjectId,
},
SignInAudience = "AzureADMultipleOrgs",
Api = new ApplicationApiArgs {
...
}
},
options: new Pulumi.CustomResourceOptions {
Provider = aadProvider,
});
salmon-hairdresser-65532
04/13/2023, 2:29 PMawsx.ecr.Image
to publish an image to an ECR repo. This is no problem on AWS but I would also like to do it locally using Localstack. In this case I am experiencing the errors, that can be found here. Is there a simple workaround for this problem or maybe even a solution in sight that would resolve it completely?breezy-agency-50844
04/13/2023, 4:18 PMor visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.
error: read ".pulumi/Pulumi.yaml": blob (key ".pulumi/Pulumi.yaml") (code=Unknown): RequestError: send request failed
caused by: Get "https://<s3_bucket>/.pulumi/Pulumi.yaml": read tcp 192.168.1.45:56411->3.5.213.145:443: read: connection reset by peer
{"level":"error","@timestamp":"2023-04-13T19:52:16.998165+05:30","caller":"command/command.go:94","msg":"failed to apply this stack","error":"failed to run update: exit status 255\ncode: 255\nstdout: \nstderr: warning: A new version of Pulumi is available. To upgrade from version '3.59.1' to '3.63.0', run \n $ brew update && brew upgrade pulumi\nor visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.\nerror: read \".pulumi/Pulumi.yaml\": blob (key \".pulumi/Pulumi.yaml\") (code=Unknown): RequestError: send request failed\ncaused by: Get \"https://<s3_bucket>/.pulumi/Pulumi.yaml\": read tcp 192.168.1.45:56411->3.5.213.145:443: read: connection reset by peer\n\n"}
{"level":"error","@timestamp":"2023-04-13T19:52:16.998262+05:30","caller":"processor/infra_processor.go:221","msg":"failed to run apply"}
{"level":"error","@timestamp":"2023-04-13T19:52:16.998302+05:30","caller":"processor/infra_processor.go:199","msg":"error while modifying members in this slack channel: <slack_channel_name>, with err: failed to run update: exit status 255\ncode: 255\nstdout: \nstderr: warning: A new version of Pulumi is available. To upgrade from version '3.59.1' to '3.63.0', run \n $ brew update && brew upgrade pulumi\nor visit <https://pulumi.com/docs/reference/install/> for manual instructions and release notes.\nerror: read \".pulumi/Pulumi.yaml\": blob (key \".pulumi/Pulumi.yaml\") (code=Unknown): RequestError: send request failed\ncaused by: Get \"https://<s3_bucket>/.pulumi/Pulumi.yaml\": read tcp 192.168.1.45:56411->3.5.213.145:443: read: connection reset by peer\n\n"}
though for each resources pulumi s3 bucket is different.quaint-book-39362
04/13/2023, 4:43 PMplain-keyboard-29627
04/13/2023, 7:55 PMpulumi up
in a GitHub Action in the renamed repo).