This message was deleted.
# python
s
This message was deleted.
g
Can you share the output from
preview --diff
as well?
s
Copy code
pulumi: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)