Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Sean Escriva
    @webframp
    Greetings @chrisroberts and others, been a while πŸ‘‹πŸ»
    Hope everyone and their families are safe and secure right now
    Had a fun sfn issue come up, one ALB property supports an http code range, like β€œ200-299” but sfn throws:
    [ERROR]: /data/sparkleformation/template.rb:140: invalid multibyte char (US-ASCII)
    /data/sparkleformation/template.rb:140: invalid multibyte char (US-ASCII)
    /data/sparkleformation/template.rb:140: invalid multibyte char (US-ASCII)
    Anyone seen this?
    Sean Escriva
    @webframp
    Sent 2 minor PRs your way @chrisroberts sparkleformation/sparkle_formation#265
    Aaron Baer
    @slyness
    PICKLES!
    Sean Escriva
    @webframp
    πŸ₯’πŸ₯’πŸ₯’
    Sean Escriva
    @webframp
    When I read this https://www.hashicorp.com/blog/cdk-for-terraform-enabling-python-and-typescript-support/ my first thought was, yea Chris did that already
    Joel Cumberland
    @jrosco
    Hi I create a issue on github (sparkleformation/sfn#309) I'm wondering if is possible to do a backoff/retries if we hit api rate limits on e.g AWS etc
    Michael F. Weinberg
    @luckymike
    I believe backoff retries are built in, at least for the event polling
    @chrisroberts hope you're safe!
    Aaron Baer
    @slyness
    I hope so too! He might very well be in level 3 go evacuation right now. :(
    A big portion of clackamas county just went into level 3.
    Michael F. Weinberg
    @luckymike
    :(
    Sean Escriva
    @webframp
    Man, fires on the west coast are insane this year!
    Chris Roberts
    @chrisroberts
    hi everyone. it's been quite a crazy year and this last month just kinda topped it off. i have quite a backlog but i will be getting to all of them over the next couple weeks. :)
    Sean Escriva
    @webframp
    @chrisroberts good to at least hear from you. It has indeed been insane, can only imagine for your area right now too.
    Chris Roberts
    @chrisroberts
    thanks, yeah. the start of the month was pretty intense. we were evacuated most of the month and just had level 2 orders lifted (finally) on tuesday.
    Maciej Wiczynski
    @mwiczynski-cartera
    hi.. i was wondering if sfn is supposed to work w/ latest ruby versions? we use chef and were just running sfn in same env/setup as chef. Upgrading chef to latest workstation pkgs, it uses ruby 2.7, sfn seems to work up to 2.6.. my coworker setup sep env using rbenv to use 2.6. Just wondering if this right way to about it? or is there something to make sfn work with ruby 2.7?
    Aaron Baer
    @slyness
    @mwiczynski-cartera I think you are correct with there being issues with sfn after ruby 2.6. But I don't know an answer to if/when 2.7 will be supported. I'll try and track one down.
    There is an open issue.
    sparkleformation/sfn#305
    Maciej Wiczynski
    @mwiczynski-cartera
    thx.. i should have looked there first..
    ah.. i looked in sparkle_formation instead of sfn repo..
    Aaron Baer
    @slyness
    but... I know this year has been a crazy basket of bonkers for Chris at times. So I don't know a status.
    Maciej Wiczynski
    @mwiczynski-cartera
    np.. we can use rbenv and just make it work with 2.6.
    thanks!
    Aaron Baer
    @slyness
    :thumbsup:
    Aaron Baer
    @slyness
    wow. I just deleted that. geeze.

    anyway... can't believe I haven't had to do this one before and it's tricky. has anyone ever translated ForAnyValue:ArnEquals

    for_any_value:_arn_equals do
    (doesn't work)
    end

    "ForAnyValue:ArnEquals" do
    (doesn't work)
    end

    'ForAnyValue:ArnEquals'.to_sym do
    (doesn't work)
    end

    'ForAnyValue:ArnEquals'._no_hump do
    (doesn't work)
    end

    Aaron Baer
    @slyness
    condition("for_any_value:_arn_equals".to_sym) do
    end
    Sean Escriva
    @webframp
    Never have. Seems like one of those classic fighting with the syntax kind of issues
    Aaron Baer
    @slyness

    that's it...
    originally I was doing
    condition do
    "crazy_string:_stuff_thing".to_sym do
    end
    end

    and that wasn't working as I would expect.

    condition("for_any_value:_arn_equals".to_sym) do
    gives me the expected result.
    Aaron Baer
    @slyness

    condition("for_any_value:_arn_equals".to_sym) do
    set!('iam:PolicyARN'._no_hump, [ 'arn:1', 'arn:2', 'arn:3'])
    end

    nice.

    Sean Escriva
    @webframp
    @slyness or @chrisroberts can either of you point me to the template upload handling code for rendered templates over the allowed inline template size for aws? I thought there was a spot in the code where it would use the template nesting bucket automatically if the template was over the limit
    Sean Escriva
    @webframp
    I might actually be thinking of this code: https://github.com/sparkleformation/sfn-lambda/blob/master/lib/sfn-lambda/control.rb#L185 now that I think about it
    and for sfn it's just if the nesting bucket is set it will use an s3 bucket by default
    Aaron Baer
    @slyness
    Happy New Year
    Maciej Wiczynski
    @mwiczynski-cartera
    Happy New Year!
    Sean Escriva
    @webframp
    @slyness or @chrisroberts having an issue with compile time params, do you guys have any working example code you can share? Getting [ERROR]: undefined methodmerge!' for "prod":String` with an example case (non-production use template obvs):
    $ sfn print --file test --no-interactive-parameters
    {​​​​​​​
      "Parameter": {​​​​​​​
        "Environment": {​​​​​​​
          "Value": "dev"
        }​​​​​​​
      }​​​​​​​,
      "Outputs": {​​​​​​​
        "CompileState": {​​​​​​​
          "Value": "{​​​​​​​\"environment_name\":\"dev\"}​​​​​​​"
        }​​​​​​​
      }​​​​​​​
    }​​​​​​​
    $ sfn print --file test --no-interactive-parameters --compile-parameters environment_name:prod
    
    [ERROR]: undefined method `merge!' for "prod":String
    Vasiliy Plotnikov
    @vasiliyplotnikov
    Hey everyone! A silly question, is it possible to add a statement to an IAM policy on condition somehow?
    I tried to do this via if but AWS doesn't accept null values or empty strings
    Vasiliy Plotnikov
    @vasiliyplotnikov
    use no_value!
    Maybe it will be useful for somebody
    Michael F. Weinberg
    @luckymike
    hey, I'm trying to run sfn with sts credentials and getting [ERROR]: Forbidden - InvalidClientTokenId: The security token included in the request is invalid.
    I can run aws cloudformation list-stacks without issue, so I know my creds are good
    Sean Escriva
    @webframp
    Never tried with sts but I have definitely seen that error before. It’s kind of a generic error returned it seems like
    Michael F. Weinberg
    @luckymike
    I'm trying to figure out what context is not carrying through sfn
    Michael F. Weinberg
    @luckymike
    AWS says that's the error if the credentials aren't recognized
    annoyingly they don't log that in cloudtrail either
    Sean Escriva
    @webframp
    The kinds of things I’ve seen it from was when the either key id or secret key in env are blank, or region is missing
    Michael F. Weinberg
    @luckymike
    I think I've ruled all of those out, it seems like there's some kind of bug reading in the sts creds (guessing maybe the session token)