• b

    blue-judge-71382

    3 months ago
    I am not sure if this is an reopened bug related to https://github.com/pulumi/pulumi-eks/issues/571
    +  pulumi:pulumi:Stack Galaxy-AWS_ECS-96471806 **creating failed** 1 error
     
    Diagnostics:
      aws:iam:RolePolicyAttachment (task-definition-1142-execution-9a42f520):
        error: 1 error occurred:
        	* creating urn:pulumi:AWS_ECS-96471806::Galaxy::awsx:ecs:FargateTaskDefinition$aws:iam/rolePolicyAttachment:RolePolicyAttachment::task-definition-1142-execution-9a42f520: 1 error occurred:
        	* error reading IAM Role Managed Policy Attachment (task-definition-1142-execution-189233a:arn:aws:iam::aws:policy/service-role/AmazonECSTaskExecutionRolePolicy): couldn't find resource
     
      pulumi:pulumi:Stack (Galaxy-AWS_ECS-96471806):
        error: update failed
    Even though I provide the ResouceOptions.transformations like lblackstone said:
    {
              transformations: [
                // Update all RolePolicyAttachment resources to use aws-cn ARNs.
                args => {
                  if (
                    args.type ===
                    'aws:iam/rolePolicyAttachment:RolePolicyAttachment'
                  ) {
                    const arn: string | undefined = args.props['policyArn'];
                    if (arn && arn.startsWith('arn:aws:iam')) {
                      args.props['policyArn'] = arn.replace(
                        'arn:aws:iam',
                        'arn:aws-cn:iam'
                      );
                    }
                    return {
                      props: args.props,
                      opts: args.opts,
                    };
                  }
                  return undefined;
                },
              ],
            }
    Is there anyone encounter this issue during creating AWS ECS stack in cn-northwest-1 region? Thanks!
    b
    1 replies
    Copy to Clipboard
  • m

    many-spring-73557

    3 months ago
    Is there a way to see the state backend that I’m logged in to?
    pulumi whoami
    just shows the username. But I don’t know if I’m logged into our custom GCP state, or pulumi service. (I can
    pulumi logout && pulumi login
    to be safe, but I want to programmatically determine backend for scripting)
    m
    s
    2 replies
    Copy to Clipboard
  • b

    blue-leather-96987

    3 months ago
    I've been trying to find a decent description of this but couldn't find it anywhere. What is the difference between the "classic" and "native" version of plugins?
    b
    l
    8 replies
    Copy to Clipboard
  • b

    breezy-laptop-42679

    3 months ago
    Im trying to reuse the github workflow to use pulumi preview . However im getting this error :GitHub Actions / .github/workflows/pull_request.yml Invalid workflow file
    error parsing called workflow "peopleticker/ccc/.github/workflows/pull_request.yml@master": workflow was not found.
    here is the code that I am using:
    name: Call a reusable workflow
    
    permissions:
      id-token: write
      contents: read
    
    on:
      pull_request:
    
    jobs:
      call-workflow-passing-data:
        uses: peopleticker/ccc/.github/workflows/pull_request.yml@master
    b
    1 replies
    Copy to Clipboard
  • c

    cuddly-alligator-37434

    3 months ago
    Hi all, I have an issue with the AutoScalingGroup AWS. I need to specify my own userData in the launch configuration. Yet I am unable to remove the suffix from and therefore predict the stack name. As a result I can do whatever i want in my user data but can never send the signal to cloudformation and my stack creation always fail Any pointer on how to get out of this?
    c
    e
    +1
    7 replies
    Copy to Clipboard
  • c

    cuddly-alligator-37434

    3 months ago
    has anyone experienced an issue with a fully manually created ECS Cluster where the instance during it's creation does not have network access, but does later on ? I went through every bit of my config: • Security Group allow eggress anywhere • the instance is in the private subnet, which routing table for outbound traffic points to the NAT • The NAT Gateway is in public subnet • the pub subnet does have an IG Additionally I created a jumbox and while the stack fails to create (no network so no cfn-signal installed by cloud-init and sent to Cloud formation for the autoscaling group). Once the instance is up, and without changing anything I log in to that specific and can successfully reach internet... confirming that the setup is right. I am thinking that the instance comes up before the NAT is attached or a specific rule added to routing table or Security group. Any pointer would be welcomed
    c
    b
    2 replies
    Copy to Clipboard
  • a

    ambitious-father-68746

    3 months ago
    Hi, in the last couple of weeks I've noticed that sometimes, when using
    --target
    , both
    pulumi pre
    and
    pulumi up
    will show only the resources that I want to update (good), but after confirming that I want to perform the update, Pulumi will try to update a resource that I haven't explicitly requested, causing failures. Has anyone seen this behaviour before?
    a
    b
    4 replies
    Copy to Clipboard
  • m

    most-mouse-38002

    3 months ago
    I have not been able to find anything that will let me bootstrap Flux with Pulumi (like this for terraform). If anyone know of something I have missed here, I would love to see it before I invest more time on this on my own.
    m
    b
    4 replies
    Copy to Clipboard
  • b

    bulky-agent-73210

    3 months ago
    Hey all, I need to run an inline program inside a docker container image. Since I can’t directly install Pulumi, I’m using precompiled binaries and would like to add them to the Pulumi PATH env var. Inside my program, I can get the absolute path to be binary file, and if I run it programmatically, it works OK. but if I add this location to the PATH and pass that auto.LocalWorkspaceOptions inside envvars, the Pulumi SDK can’t find pulumi executable. Any ideas? Using Golang.
    b
    e
    2 replies
    Copy to Clipboard
  • p

    purple-plastic-64657

    3 months ago
    Is it possible to conditionally create resources?
    if <condition>: 
        my_lambda = aws.lambda_.Function(...)
    When I tried this, the if statements seem to be ignored. I'm trying to create or ignore resources based on the current pulumi stack
    p
    b
    3 replies
    Copy to Clipboard