by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Mark Conigliaro
    @markconigliaro1
    Hey guys, I thought id give Gyro a try on a personal project (not using an Brightspot infrastructure, so this purely from scratch with my personal AWS account + profile), using these instructions https://gyro.dev/guides/getting-started/installing.html. However after getting to my setting up my first EC2 instance I try to Gyro up and it reports no changes... heres my output. Any thoughts?
    ops:ops markconigliaro$ gyro up
    ↓ Loading plugin: gyro:gyro-aws-provider:0.99.0
    ⟳ Refreshing resources: 0 started, 0 done⟳ Refreshed resources: 0
    
    Looking for changes...
    
    
    No changes.
    Deepanjan Bhattacharyya
    @deepanjan90
    what do you have in your gyro config file ?
    Mark Conigliaro
    @markconigliaro1
    ami-id: $(external-query aws::ami {
        name: 'ubuntu/images/hvm-ssd/ubuntu-xenial-16.04-amd64-server-20190628',
        architecture: 'x86_64',
        root-device-type: 'ebs',
        virtualization-type: 'hvm',
        owner-id: '099720109477',
        state: 'available'
    }).0.id
    
    aws::instance webserver
        ami: $(ami-id)
        instance-type: "t3.micro"
    end
    Pretty much the same as the example in the docs, just i chose t3.micro instead for the instance type
    Deepanjan Bhattacharyya
    @deepanjan90
    The above file is under a directory having .gyro directory which contains the init.gyro correct ?
    Mark Conigliaro
    @markconigliaro1
    Yup!
    ops:.gyro markconigliaro$ ll
    total 16
    drwxr-xr-x  4 markconigliaro  admin  136 May  1 16:27 .
    drwxr-xr-x  5 markconigliaro  admin  170 Apr 30 20:43 ..
    -rw-r--r--  1 markconigliaro  admin  242 Apr 30 20:35 init.gyro
    -rw-r--r--  1 markconigliaro  admin  341 Apr 30 20:01 instance.gyro
    Deepanjan Bhattacharyya
    @deepanjan90
    what happens if you do gyro up instance.gyro ?
    Mark Conigliaro
    @markconigliaro1
    Same result unfortunately :/
    For completeness heres my current init.gyro
    @repository: 'https://artifactory.psdops.com/public'
    @repository: 'https://artifactory.psdops.com/gyro-snapshots'
    @plugin: 'gyro:gyro-aws-provider:0.99.0'
    
    @credentials 'aws::credentials'
        profile-name: 'gyro'
        region: 'us-east-1'
    @end
    I have a gyro profile in my ~/.aws/credentials, with creds from my IAM user i created with admin access so it should have the correct access
    Deepanjan Bhattacharyya
    @deepanjan90
    is your instance.gyro under .gyro ?
    Mark Conigliaro
    @markconigliaro1
    Yup both files are in that directory
    Deepanjan Bhattacharyya
    @deepanjan90
    could you take instance.gyro outside the .gyro directory
    Mark Conigliaro
    @markconigliaro1
    Wow that worked
    Deepanjan Bhattacharyya
    @deepanjan90
    gyro checks for config files outside the .gyro dir. It only uses the .gyro dir for internal configs
    Mark Conigliaro
    @markconigliaro1
    That makes sense
    im checking to make sure i read the docs correctly haha
    Given the docs always referenced init.gyro as .gyro/init.gyro i guess it was implying you should be a level up. So probably a misunderstanding on my end then!
    thanks for the help!
    Deepanjan Bhattacharyya
    @deepanjan90
    :)
    Gemini Agaloos
    @007g3m1n1
    Hello All. Any plans/work being done on supporting AWS EKS on the gyro-aws-provider? https://github.com/perfectsense/gyro-aws-provider
    3 replies
    ErikBZ
    @ErikBZ

    Is there a way to escape quotes in gyro strings? I expected the following to print
    The cat says: "Test"

    var: "Test"
    var2: "The cat says: \"$(var)\""
    
    @print: $(var2)

    but it prints "The cat says: \"Test\"" instead

    ErikBZ
    @ErikBZ

    For some extra context, the Google Service Account Role has a field "condition". The syntax for the conditions require double quotes, like

    expression: 'resource.name.startsWith("projects/_/buckets/some_bucket/path") || 
    resource.name.startsWith("projects/_/buckets/another_bucket/path")'

    Since we have to use single quotes, we're not able to use variables in the condition expressions

    1 reply
    Todd Loisel
    @tloisel1
    i'm having trouble building the google provider:
    ⏚ [tloisel:~/projects/gyro/gyro-google-provider] master 2s 1 ± ./gradlew
    > Task :compileJava FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':compileJava'.
    > Could not resolve all files for configuration ':compileClasspath'.
       > Could not find threetenbp-no-tzdb.jar (org.threeten:threetenbp:1.4.1).
         Searched in the following locations:
             file:/Users/tloisel/.m2/repository/org/threeten/threetenbp/1.4.1/threetenbp-1.4.1-no-tzdb.jar
    
    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 1s
    2 actionable tasks: 2 executed
    not sure where that file would come from
    Jeremy Collins
    @beetlebugorg
    I don't get this error. I even cleaned out my ~/.m2/repository directory. Google provider rebuilt fine and I don't even have threetenbp jars in there.
    Todd Loisel
    @tloisel1
    i had a workaroud yesterday, but clearing my ~/.m2/repository seems to resolve the issue as well
    Todd Loisel
    @tloisel1
    is there a String Match rule for AWS WAF?
    Screenshot_2020-05-19 AWS WAF Classic.png
    this is what i'm trying to express :point_up_2:
    Jeremy Collins
    @beetlebugorg
    I was just going to ask... doesn't waf just use regex.
    Hmm.
    Todd Loisel
    @tloisel1
    oh, it's called ByteMatch
    looks like there's a V2 of WAF as well now. (incompatible with V1)
    Jeremy Collins
    @beetlebugorg
    "classic waf" haha
    Any idea what the differences are?
    @deepanjan90 probably should put wafv2 into the backlog
    I like that they got rid of the regional API.
    Deepanjan Bhattacharyya
    @deepanjan90
    On it
    Todd Loisel
    @tloisel1
    I created an issue for GCP regarding instance health for backend compute services: perfectsense/gyro-google-provider#179.
    I also took a crack at the solution since it was pretty straightforward: perfectsense/gyro-google-provider#180
    I think this was the right direction, but I'd need to know before updating our project template
    Jeremy Collins
    @beetlebugorg
    I'll check this out in a few and let you know.
    Jeremy Collins
    @beetlebugorg
    Reading the code this is the output I'd expect from this: { "all": { "Total": 1, "HEALTHY": 1, "UNHEALTHY": 0 }, "my-backend": { "Total": 1, "HEALTHY": 1, "UNHEALTHY": 0 }, "my-other-backend": { "Total": 1, "HEALTHY": 1, "UNHEALTHY": 0 } }
    Does that look correct? If so, that seems like the right approach.
    Todd Loisel
    @tloisel1
    yeah, that's output
    Jeremy Collins
    @beetlebugorg
    Cool, I think that's a good approach.
    Todd Loisel
    @tloisel1
    :thumbsup:
    Jeremy Collins
    @beetlebugorg
    I'll try to get this merged soon. I have a few other PRs for GCP to merge as well. :)
    Todd Loisel
    @tloisel1
    cool