https://pulumi.com logo
Docs
Join the conversationJoin Slack
Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-cdk
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumi-service
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by Linen
general
  • m

    microscopic-florist-22719

    11/08/2018, 8:04 PM
    Can you try running
    pulumi refresh
    followed by
    pulumi up
    ?
  • m

    microscopic-florist-22719

    11/08/2018, 8:05 PM
    (longer term we expect that we will automatically run a refresh as part of an update)
  • e

    early-musician-41645

    11/08/2018, 8:05 PM
    not working 😞
    refresh
    is updating a resources that I've since deleted and is no longer in the code
  • e

    early-musician-41645

    11/08/2018, 8:06 PM
    e.g.
    No resources will be modified as part of this refresh; just your stack's state will be. yes
    Refreshing (mustang-aws-iam-sandbox):
    
         Type                         Name                                     Status
         pulumi:pulumi:Stack          mustang-aws-iam-mustang-aws-iam-sandbox
         β”œβ”€ aws:iam:Policy            mustang-sandbox-dev
         β”œβ”€ aws:iam:Group             mustang-sandbox
         β”œβ”€ aws:iam:PolicyAttachment  mustang-sandbox-policy-attachment
         β”œβ”€ aws:iam:GroupMembership   mustang-sandbox-dev-group-members
         └─ aws:iam:PolicyAttachment  mustang-sandbox-dev-attachment
    there is only one PolicyAttachment, when I try to delete it one will succeed the other will fail
  • e

    early-musician-41645

    11/08/2018, 8:06 PM
    meaning: I only have a single PolicyAttachment in the code now. I changed the resource name from -dev-attachment to -policy-attachment, but it's still refreshing the -dev-attachment
  • m

    microscopic-florist-22719

    11/08/2018, 8:07 PM
    That should be okay--the
    -dev-attachment
    should show up as a
    delete
    in the
    refresh
  • e

    early-musician-41645

    11/08/2018, 8:08 PM
    it does not
  • m

    microscopic-florist-22719

    11/08/2018, 8:08 PM
    Interesting. That seems like a bug.
  • e

    early-musician-41645

    11/08/2018, 8:08 PM
    ]$ pulumi refresh
    Previewing refresh (mustang-aws-iam-sandbox):
    
         Type                         Name                                     Plan
         pulumi:pulumi:Stack          mustang-aws-iam-mustang-aws-iam-sandbox
         β”œβ”€ aws:iam:Group             mustang-sandbox
         β”œβ”€ aws:iam:GroupMembership   mustang-sandbox-dev-group-members
         β”œβ”€ aws:iam:PolicyAttachment  mustang-sandbox-policy-attachment
         β”œβ”€ aws:iam:PolicyAttachment  mustang-sandbox-dev-attachment
         └─ aws:iam:Policy            mustang-sandbox-dev
    
    Resources:
        0 changes
        6 unchanged
    
    Do you want to perform this refresh?
    No resources will be modified as part of this refresh; just your stack's state will be. yes
    Refreshing (mustang-aws-iam-sandbox):
    
         Type                         Name                                     Status
         pulumi:pulumi:Stack          mustang-aws-iam-mustang-aws-iam-sandbox
         β”œβ”€ aws:iam:Policy            mustang-sandbox-dev
         β”œβ”€ aws:iam:GroupMembership   mustang-sandbox-dev-group-members
         β”œβ”€ aws:iam:Group             mustang-sandbox
         β”œβ”€ aws:iam:PolicyAttachment  mustang-sandbox-policy-attachment
         └─ aws:iam:PolicyAttachment  mustang-sandbox-dev-attachment
    
    Resources:
        0 changes
        6 unchanged
    
    Duration: 1.561901228s
    
    Permalink: <https://app.pulumi.com/eshamay/mustang-aws-iam-sandbox/updates/19>
  • e

    early-musician-41645

    11/08/2018, 8:09 PM
    what about
    stack export
    and modify it before an
    import
    ?
  • m

    microscopic-florist-22719

    11/08/2018, 8:09 PM
    That was roughly my next suggestion. I believe that we've added a CLI gesture to remove a specific resource from the checkpoint for cases like this. @incalculable-sundown-82514?
  • i

    incalculable-sundown-82514

    11/08/2018, 8:11 PM
    Yes, there’s now a
    pulumi state delete
    command that takes a URN as an argument and deletes it wholesale from your checkpoint.
  • e

    early-musician-41645

    11/08/2018, 8:11 PM
    ah, cool. thanks
  • i

    incalculable-sundown-82514

    11/08/2018, 8:12 PM
    You can do
    pulumi stack -u
    to get a list of all resources in your stack plus their URNs, too.
    πŸ‘ 1
  • e

    early-musician-41645

    11/08/2018, 8:21 PM
    that works, thanks again
  • e

    early-musician-41645

    11/08/2018, 10:31 PM
    How do I get a list of config keys, or an iterable I can use for looping over the key-values? e.g. I have this config:
    config:
      aws:region: us-west-2
      tas:domain: sandbox
      tas:universe: dev
      tas:environment: online_mustang
      tas:configuration-bucket: sdp-sandbox-configuration
      service:backgrounder: "backgrounder,near.18.1107.1740-master-392912,pod-settings-1597742"
      service:dataserver: "dataserver,near.18.1107.1740-master-392912,pod-settings-1597742"
    services = new pulumi.Config("service");
    I want to loop over
    backgrounder
    and
    dataserver
    keys, or have an iterator for key-values in the
    services
  • e

    early-musician-41645

    11/08/2018, 10:33 PM
    Or is there a better pattern to use instead of Config?
  • s

    stocky-spoon-28903

    11/08/2018, 10:34 PM
    I think you can use
    runtime.allConfig()
    e
    w
    g
    • 4
    • 22
  • s

    salmon-father-71224

    11/09/2018, 2:40 PM
    Hello everyone, just getting started with pulumi on aws... and I was wondering are access_key and secret_access_key required ? if I run pulumi on a ec2 server with a special IAM role, will pulumi use that role?
    w
    • 2
    • 14
  • s

    sparse-insurance-40223

    11/09/2018, 4:53 PM
    if i use an encrypted config variable with the value also be encryted inside the state files?
  • s

    sparse-action-84781

    11/09/2018, 4:57 PM
    Or is there a way to mark a config variable as ephemeral so it's never persisted and doesn't get evaluated for equality when applying updates?
  • s

    sparse-insurance-40223

    11/09/2018, 4:59 PM
    or hashed!
  • h

    hundreds-musician-51496

    11/09/2018, 7:37 PM
    Little confused about how resources are tracked - if I create a LoadBalancer instance (
    new aws.elasticloadbalancingv2.LoadBalancer(...)
    ) will it be recognized as a resource to be tracked? If not, how do I transform it such that it will be tracked?
    s
    • 2
    • 4
  • h

    hundreds-musician-51496

    11/09/2018, 9:08 PM
    Is there a built-in way to run a single task on an existing ECS cluster? I don't think the cloud-sdk
    Task
    class works for me as AFAICT it wants to create a cluster
    w
    • 2
    • 4
  • h

    hundreds-musician-51496

    11/09/2018, 9:27 PM
    Can configuration values be set/changed while a script executes?
    w
    • 2
    • 2
  • h

    hundreds-musician-51496

    11/09/2018, 9:27 PM
    For example to set the
    cloud:ecsClusterARN
    value
  • e

    elegant-planet-7298

    11/10/2018, 1:17 AM
    I seem to be repeatedly getting the error: "error: an unhandled error occurred: Program exited with non-zero exit code: 1 error: an error occurred while advancing the preview" The little exclamation mark sign in the activity log says "Uncommitted changes were present at the time of this update". But I've committed all changes and I've tried all the things in the troubleshooting guide with no success. Any suggestions?
    w
    • 2
    • 5
  • h

    hundreds-musician-51496

    11/10/2018, 1:18 AM
    Does that include running
    refresh
    ?
  • e

    elegant-planet-7298

    11/10/2018, 1:22 AM
    yep
  • h

    hundreds-musician-51496

    11/10/2018, 1:22 AM
    all i got 😞
Powered by Linen
Title
h

hundreds-musician-51496

11/10/2018, 1:22 AM
all i got 😞
View count: 1