Channels
esc
welcome
pulumi-cdk
cloudengineering
yaml
blog-posts
localstack
pulumi-ai
package-authoring
policy-as-code
pulumiup-booth-support
oracle-cloud-infrastructure
learn-pulumi-events
linen
registry
built-with-pulumi
pulumi-cloud
contribex
testingtesting321
hacktoberfest
pulumi-crosscode
content-share
finops
multi-language-hackathon
office-hours
workshops
gitlab
general
pulumi-kubernetes-operator
jobs
pulumi-deployments
dotnet
aws
golang
announcements
java
pulumiverse
python
install
getting-started
cloudengineering-support
testingtesting123
hackathon-03-19-2020
typescript
google-cloud
contribute
azure
kubernetes
docs
automation-api
status
Powered by
#general
Title
# general
f
fierce-ability-58936
11/13/2022, 9:43 PM
Just shaving the yak. Wanted to create an ECS service on ec2.
https://pkg.go.dev/github.com/pulumi/pulumi-awsx/sdk@v1.0.0-testplsignore.0/go/awsx/ecs#NewEC2Service
easy, right? For some reason NetworkConfiguration is required, even though I passed NetworkMode: "bridge" to the task definition args. Oh well, let's do
https://pkg.go.dev/github.com/pulumi/pulumi-awsx/sdk@v1.0.0-testplsignore.0/go/awsx/ecs#NewEC2TaskDefinition
so that it takes care of the log group and iam roles and use plain ecs.NewService. No, it still creates a task definition with "awsvpc" network mode. Oh well:
https://github.com/pulumi/pulumi-awsx/blob/master/awsx/ecs/ec2TaskDefinition.ts#L127
Ok, let's just transform that resource using pulumi.Transformations, and...it doesn't work
https://github.com/pulumi/pulumi/issues/6948
Now is it easier to create my own component or fix awsx, or ask for it to be fixed? 🙂
e
echoing-dinner-19531
11/13/2022, 10:40 PM
ask for it to be fixed?
Probably that, we've got people working towards a v1.0 release of awsx so I'd hope it could at least be fixed as part of that.
Post