happy-pencil-64085
10/15/2020, 2:43 PMhundreds-receptionist-31352
10/15/2020, 3:20 PMbreezy-helmet-47710
10/15/2020, 4:39 PMquick-apartment-308
10/15/2020, 5:33 PMAt least one field is expected inside environment
I only found one reference to this error. It's terraform related, but I'm not sure how it's resolved with Pulumi. The stack was working yesterday and the error is still returned after reverting the code. No changes were made to infrastructure code.gifted-vase-28337
10/15/2020, 10:16 PMquaint-electrician-41503
10/16/2020, 10:18 PMaverage-kilobyte-47828
10/17/2020, 9:58 PMblue-morning-55097
10/18/2020, 5:15 PMaverage-kilobyte-47828
10/18/2020, 5:48 PMDiagnostics:
aws:route53:Record (acme-wildcard-record):
error: aws:route53/record:Record resource 'acme-wildcard-record' has a problem: ConflictsWith
error: aws:route53/record:Record resource 'acme-wildcard-record' has a problem: ConflictsWith
victorious-helmet-11068
10/19/2020, 12:01 PMvictorious-helmet-11068
10/19/2020, 12:01 PMvictorious-helmet-11068
10/19/2020, 12:01 PMlittle-cartoon-10569
10/19/2020, 8:18 PMdazzling-sundown-39670
10/19/2020, 10:02 PMcrooked-appointment-9302
10/20/2020, 7:24 AMcuddly-dusk-95227
10/20/2020, 11:46 AMeks.NewCluster
results in the cluster name having a random suffix attached. This might be fine for creation, but it also applies to imports, leaving a situation where an existing cluster can never be imported because the source name and the imported resource name is different.cuddly-dusk-95227
10/20/2020, 11:48 AMDo you want to perform this update? details
+ pulumi:pulumi:Stack: (create)
[urn=urn:pulumi:mycluster::eks-cluster::pulumi:pulumi:Stack::eks-cluster-mycluster]
= aws:eks/cluster:Cluster: (import)
[id=mycluster]
[urn=urn:pulumi:mycluster::eks-cluster::aws:eks/cluster:Cluster::mycluster]
~ name: "mycluster" => "mycluster-c91b26c"
broad-church-78931
10/20/2020, 11:50 AMcalm-greece-42329
10/20/2020, 6:39 PM@pulumi/awsx
solution to address managing step functions? i’m thinking something like https://github.com/aws/aws-cdk/tree/master/packages/%40aws-cdk/aws-stepfunctions where the library is able to generate the state definition and check for validity, manage roles, and things like that.astonishing-quill-88807
10/20/2020, 8:12 PMcontainer_definitions
array. It says that the attribute needs to be an array when I set it to a string via json.dumps
and says it needs to be a single value when I set it to a Python list... Here's my code as it stands right now
sign_and_verify_task = ecs.TaskDefinition(
f'sign-and-verify-task-{env_suffix}',
cpu='0.25',
memory='500',
network_mode='awsvpc',
pid_mode='task',
requires_compatibilities='FARGATE',
tags=aws_config.merged_tags({'Name': f'sign-and-verify-{env_suffix}'}),
execution_role_arn=sign_and_verify_task_execution_role.arn,
family=f'sign-and-verify-task-{env_suffix}',
container_definitions=[
{
'name': 'sign-and-verify',
'image': f'mitodl/sign-and-verify:{sign_and_verify_config.require("docker_label")}',
'environment': [
{'name': 'PORT', 'value': '5000'}
],
'secrets': [
{'name': 'UNLOCKED_DID', 'valueFrom': unlocked_did_secret.arn}
]
}
],
ipc_mode='task',
)
astonishing-quill-88807
10/20/2020, 8:32 PMrequires_compatibilities
attribute is a string in my code and needs to be a list. 🤦♂️salmon-ghost-86211
10/22/2020, 4:25 PMimport * as eks from "@pulumi/eks";
const cluster = new eks.Cluster(...)
const clusterNodeGroup1 = cluster.createNodeGroup(...)
I want to adjust enabledMetrics
and suspendedProcesses
on the ASG, but I'm not sure how to access it. I think I can get the name from clusterNodeGroup1.apply(ng => ng.autoScalingGroupName)
. I can also use the autoscaling getGroup function.
How do I get an existing object and then update properties?kind-school-28825
10/23/2020, 6:19 AMSTACK_TRACE:
Error:
at Object.debuggablePromise (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
at Object.registerResource (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/pulumi/runtime/resource.js:132:18)
at new Resource (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/pulumi/resource.js:211:24)
at new CustomResource (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/pulumi/resource.js:303:9)
at new TaskDefinition (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/ecs/taskDefinition.ts:203:9)
at new TaskDefinition (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/ecs/taskDefinition.ts:80:31)
at new FargateTaskDefinition (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/ecs/fargateService.ts:48:9)
at new FargateService (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/ecs/fargateService.ts:206:13)
at Object.<anonymous> (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/ecs/index.js:14:22)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
error: Running program '/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra' failed with an unhandled exception:
TypeError: Cannot read property 'lastIndexOf' of undefined
at Object.getImageNameAndTag (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/utils.ts:25:37)
at checkRepositoryUrl (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/docker.ts:190:27)
at /Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/docker.ts:230:5
at Generator.next (<anonymous>)
at /Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/docker/docker.js:21:71
at new Promise (<anonymous>)
at __awaiter (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/docker/docker.js:17:12)
at buildAndPushImageWorkerAsync (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/docker/docker.js:133:12)
at Object.<anonymous> (/Users/qalbaqali/Documents/Personal/rawag-v2/core/infra/node_modules/@pulumi/docker.ts:172:34)
at Generator.next (<anonymous>)
Tracking the origin of this error using the stack trace (to my understanding) is because when pulumi is trying to build the image, it's crashing when it's trying to get the Docker image name Cannot read property 'lastIndexOf' of undefined
which is in the @pulumi/docker/utils.js
https://github.com/pulumi/pulumi-docker/blob/master/sdk/nodejs/utils.ts#L15
This is all running in github actions CI.
Might be related to this github issue: https://github.com/pulumi/pulumi/issues/3626 @faint-table-42725
Deleting all the resources, and creating them again leads to the same errorkind-school-28825
10/23/2020, 6:19 AM+ infra/
++ ecr/
+++ index.js <-- ecr.Repository & ecs.Image.fromPath
++ ecs/
+++ index.js <-- ecs.FargateService
++ index.js <-- main entry point
+ src/
+ Dockerfile
infra/ecr/index.js
var pulumi = require("@pulumi/pulumi");
var awsx = require("@pulumi/awsx");
var ecrRepo = new awsx.ecr.Repository("core", {
tags: {
Name: `core ${pulumi.getStack()} repository`,
},
});
var ecrRepoUrl = ecrRepo.repository.repositoryUrl;
var dockerImage = awsx.ecs.Image.fromPath(ecrRepo, "../../");
module.exports = { ecrRepoUrl, dockerImage };
infra/ecs/index.js
var awsx = require("@pulumi/awsx");
var { loadBalancerListener, securityGroup, vpc } = require("../network");
var { atlasCluster } = require("../mongodb");
var { dockerImage } = require("../ecr");
var { getEnvironmentVariables } = require("./helpers");
var ecsCluster = new awsx.ecs.Cluster("core-cluster", {
vpc,
securityGroups: [securityGroup],
});
var fargateService = new awsx.ecs.FargateService("core-fgs", {
ecsCluster,
taskDefinitionArgs: {
container: {
image: dockerImage,
cpu: 202,
memory: 1024,
portMappings: [loadBalancerListener],
healthCheck: {
command: ["CMD-SHELL", "curl -f <http://localhost:3000/> || exit 1"],
startPeriod: 10,
retries: 3,
},
environment: [
...getEnvironmentVariables(),
{
name: "DB_CONNECTION_URL",
value:
process.env.DB_CONNECTION_URL ||
atlasCluster.connectionStrings.standardSrv,
},
],
},
},
desiredCount: 1,
});
module.exports = { ecsCluster, fargateService };
infra/index.js
var { ecrRepoUrl, dockerImage } = require("./ecr");
var { fargateService } = require("./ecs");
module.exports = {
ecrRepositoryUrl: ecrRepoUrl,
image: dockerImage.environment,
fargateService: fargateService.urn,
};
When running pulumi I get the following errorsalmon-ghost-86211
10/23/2020, 1:30 PMimport * as eks from "@pulumi/eks";
but can also import others like aws/awsx.
If I create an EKS cluster and then create a node group with the cluster's createNodeGroup
function, it generates an Auto Scaling Group (ASG) to manage the number of instances in the cluster.
I would like to set some properties of the ASG such as enabledMetrics, but I am uncertain how to access the ASG that got created. The node group does have a property named autoScalingGroupName
, so I should be able to access it as an output but I am not sure how.adamant-dress-73325
10/23/2020, 5:10 PMcrooked-knife-92853
10/26/2020, 1:30 PMenabledMetrics
have a list of allowed values corresponding to metrics that we can collect for the ASG; however, if we look at the implementation of the Metrics class some are clearly missing (ex: GroupInServiceCapacity
, GroupPendingCapacity
, etc, etc). My question: is there somewhere I can/should report this issue to get it fixed? Like should I create a GH issue? Or may I submit a PR to remedy it? Wondering what you all think of thisadamant-translator-31969
10/26/2020, 1:49 PMdazzling-sundown-39670
10/26/2020, 5:52 PMError putting S3 Grants: InvalidArgument: Invalid id
. I've been looking at this: https://www.pulumi.com/docs/reference/pkg/aws/s3/bucket/#using-acl-policy-grants
Any suggestions? Code in comments ➡️breezy-butcher-78604
10/27/2020, 6:50 AM