best-lifeguard-91445
08/20/2020, 12:39 AMchilly-rainbow-79265
08/20/2020, 5:20 AMhelpful-advantage-49286
08/20/2020, 5:21 AMbumpy-garden-89740
08/20/2020, 8:24 AMbrave-dress-99218
08/20/2020, 2:16 PMaws.route53.Record
(using python
) and use it to render a json
from jinja2
template. then use this json
as a value for container_definitions
parameter in aws.ecs.TaskDefinition
resource. For that I do
route53_record = aws.route53.Record(f"{acc_name}",
.....
}])
and then, using apply
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
j2_env = Environment(loader=FileSystemLoader(THIS_DIR),
trim_blocks=True)
ecs_task_definition = aws.ecs.TaskDefinition(f"{acc_name}",
family=f"ent-{dep_name}-{acc_name}",
container_definitions=j2_env.get_template('templates/acc-td-container-defs.json.j2').render({
'web_servername': pulumi.Output.all(route53_record.fqdn).apply(lambda fqdn: fqdn),
# 'web_servername': route53_record.fqdn.apply(lambda fqdn: fqdn),
...
...
}),
...
...
But as a result I always get something like <pulumi.output.Output object at 0x10d1c0780>
Can you, guys, please help me understand what i'm doing wrong? THanks !brave-dress-99218
08/20/2020, 2:20 PMterraform
for that i used data "template_file"
and it worked well. but I'm not sure that i'm using a right approach in pulumi
brave-angle-33257
08/20/2020, 3:44 PMbrave-angle-33257
08/20/2020, 3:46 PMbest-lifeguard-91445
08/20/2020, 7:55 PMNAME LAST UPDATE RESOURCE COUNT
prod* n/a n/a
ancient-megabyte-79588
08/20/2020, 8:40 PMconst accountPassword = new random.RandomPassword("RabbitMqAdmin_password", {
length: 40,
special: true,
overrideSpecial: `_%@`
}).result;
Which is a password, but the password is available in plain text in the resources view of the web portal.
This doesn't seem like it should be the default behaviour for a .RandomPassword
.faint-motherboard-95438
08/20/2020, 8:52 PMProvider
object)alert-raincoat-81485
08/21/2020, 5:50 AMnarrow-jackal-57645
08/21/2020, 7:51 AMimport * as github from "@pulumi/github";
new github.Repository("my_repo", {
name: "my_repo",
topics: ["typescript"]
})
Creation works perfectly.
then I updated the topics
value to ["javascript"]
and apply, however I got following error:
github:index:Repository (my_repo):
error: 1 error occurred:
* updating urn:pulumi:my_company::github-infrastructure::github:index/repository:Repository::my_repo: PATCH <https://api.github.com/repos/my_company/my_repo>: 404 Not Found []
Wondering if it is a bug or I have missed something important. Many thanks in advancedazzling-sundown-39670
08/21/2020, 8:16 AMpulumi stack export | pulumi stack import
. This is my error:
state file contains errors: child resource urn:pulumi:production::magento2::kubernetes:core/v1:Namespace$kubernetes:apps::redis refers to missing parent urn:pulumi:production::magento2::kubernetes:core/v1:Namespace::production
chilly-computer-67665
08/21/2020, 9:24 AMwonderful-window-14544
08/21/2020, 2:08 PMchilly-hairdresser-56259
08/21/2020, 3:45 PMbitter-dentist-28132
08/21/2020, 8:21 PMdamp-secretary-81951
08/21/2020, 8:24 PM--stack ${AWS::StackName} --region ${AWS::Region}
thankful-holiday-28161
08/21/2020, 8:59 PMloud-soccer-66701
08/22/2020, 3:57 PM[getLatestSemverDockerTag, updateKubernetesDeployment, notifySlackConsumers]
, [generateTagFromProjectHash, buildAnddeployDockerImage, redeployEC2Instances, ...]
the aim is - to maintain separate pieces of code dvided by components, toavoid duplication and so on, you know how it goes in software developers world
questions:
- does it make sense? is there a more preferrable way of building pipelines from composable pieces?
- how do you do it currently? any best practices?curved-kangaroo-20109
08/23/2020, 3:21 AMchilly-rainbow-79265
08/24/2020, 11:43 AMwonderful-window-14544
08/24/2020, 12:58 PMpulumi.Output<RunCommandResult>;
object filled but cannot and need some data to file but cannot grab values as strings. Need to write output to local file. Is there any way?best-lifeguard-91445
08/24/2020, 2:40 PMpulumi up
and completes successfully, my stack continues to show changes on the next invocation of`pulumi preview` and pulumi up
→ [feature/devops/baffle-ha-732 ≡ +0 ~10 -0 !]› pulumi up
Previewing update (dev):
Type Name Plan Info
pulumi:pulumi:Stack aws-dev 14 messages
├─ awsx:x:ecs:EC2TaskDefinition use1-dev-registrar-api
+- │ └─ aws:ecs:TaskDefinition use1-dev-registrar-api replace [diff: ~containerDefinitions]
└─ awsx:x:ecs:EC2Service use1-dev-registrar-api
~ └─ aws:ecs:Service use1-dev-registrar-api update [diff: ~taskDefinition]
Details:
++aws:ecs/taskDefinition:TaskDefinition: (create-replacement)
[id=use1-dev-registrar-api]
[urn=urn:pulumi:dev::aws::awsx:x:ecs:EC2TaskDefinition$aws:ecs/taskDefinition:TaskDefinition::use1-dev-registrar-api]
[provider=urn:pulumi:dev::aws::pulumi:providers:aws::default_2_4_0::ef2f3133-efd2-4f21-a3ed-67550c0c8b97]
~ containerDefinitions: "[secret]" => "[secret]"
+-aws:ecs/taskDefinition:TaskDefinition: (replace)
[id=use1-dev-registrar-api]
[urn=urn:pulumi:dev::aws::awsx:x:ecs:EC2TaskDefinition$aws:ecs/taskDefinition:TaskDefinition::use1-dev-registrar-api]
[provider=urn:pulumi:dev::aws::pulumi:providers:aws::default_2_4_0::ef2f3133-efd2-4f21-a3ed-67550c0c8b97]
~ containerDefinitions: "[secret]" => "[secret]"
~ aws:ecs/service:Service: (update)
[id=arn:aws:ecs:us-east-1:382762964374:service/use1-dev-registrar-api-6d44494]
[urn=urn:pulumi:dev::aws::awsx:x:ecs:EC2Service$aws:ecs/service:Service::use1-dev-registrar-api]
[provider=urn:pulumi:dev::aws::pulumi:providers:aws::default_2_4_0::ef2f3133-efd2-4f21-a3ed-67550c0c8b97]
~ taskDefinition: "arn:aws:ecs:us-east-1:382762964374:task-definition/use1-dev-registrar-api:226" => output<string>
--aws:ecs/taskDefinition:TaskDefinition: (delete-replaced)
[id=use1-dev-registrar-api]
[urn=urn:pulumi:dev::aws::awsx:x:ecs:EC2TaskDefinition$aws:ecs/taskDefinition:TaskDefinition::use1-dev-registrar-api]
[provider=urn:pulumi:dev::aws::pulumi:providers:aws::default_2_4_0::ef2f3133-efd2-4f21-a3ed-67550c0c8b97]
victorious-helmet-11068
08/24/2020, 3:27 PMvictorious-helmet-11068
08/24/2020, 3:28 PMvictorious-helmet-11068
08/24/2020, 3:28 PMvictorious-helmet-11068
08/24/2020, 3:28 PMvictorious-helmet-11068
08/24/2020, 3:28 PM