sparse-intern-71089
09/02/2020, 8:39 AMgentle-diamond-70147
09/02/2020, 4:12 PMpreview --diff
as well?strong-musician-98782
09/02/2020, 5:09 PMpulumi:pulumi:Stack: (same)
[urn=urn:pulumi:ks1234::ks::pulumi:pulumi:Stack::ks-ks1234]
+-aws:ec2/instance:Instance: (replace)
[id=i-0bbbfb2b5d7a1f1d8]
[urn=urn:pulumi:ks1234::ks::kenshoo:KS:KSAppServer$aws:ec2/instance:Instance::ks-aws-ue-ks1234-app]
[provider=urn:pulumi:ks1234::ks::pulumi:providers:aws::default_2_13_1::cc8952d4-1e59-4ab4-8375-6764fe176939]
~ userData: "ff55eb8b81f6b18b46eee35607dcc044a8d9b9b8" => "\n #!/bin/bash\n hostname > /tmp/mortst\n yum install git -y\n git pull https://[secret]@github.com/kenshoo/ansible-common.git\n /usr/sbin/useradd -d /home/deployer -m -s /bin/bash deployer\n echo \"deployer ALL=(ALL:ALL) NOPASSWD: ALL\" >> /etc/sudoers\n mkdir -p /home/deployer/.ssh\n chown -R deployer:deployer /home/deployer/.ssh\n chmod 700 /home/deployer/.ssh\n echo 'ssh-rsa [secret]' >> /root/.ssh/authorized_keys\n\n mkfs -t ext4 /dev/sdb\n mkdir /kdata\n echo '/dev/sdb /kdata ext4 defaults,noatime,data=writeback 0 0' >> /etc/fstab\n mount /kdata\n "
just to be clear, when i try to use the same code outside of the class in my main it works just fine, it also works in the class if i remove all variables (even though the variables should be the same all the time as they are from the config)No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by