Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid fields on subresources can output confusing errors #155

Open
beam-sysuser opened this issue Sep 20, 2019 · 0 comments
Open

Invalid fields on subresources can output confusing errors #155

beam-sysuser opened this issue Sep 20, 2019 · 0 comments

Comments

@beam-sysuser
Copy link

In this example the CloudFrontOriginResource takes a domain-name not a domain. The error is hard to parse because it's not the usual "invalid field" error.

$ gyro up lower/uat.gyro 
↓ Loading plugin: gyro:gyro-aws-provider:0.99.0-SNAPSHOT
↓ Loading plugin: gyro:gyro-ssh-plugin:0.99.0-SNAPSHOT
⟳ Refreshed resources: 25

Error: Can't set origin to [{id=Custom-origin.uat.gyro.psdops.com, domain=origin.uat.gyro.psdops.com, custom-origin=[{http-port=80, origin-keep-alive-timeout=5, origin-read-timeout=30, origin-protocol-policy=http-only}]}] because it can't be converted to an instance of java.util.Set<gyro.aws.cloudfront.CloudFrontOrigin>!

In lower/uat.gyro from line 128 at column 5 to line 138 at column 7:
128: origin
129: id: "Custom-origin.uat.$(project).psdops.com"
130: domain: "origin.uat.$(project).psdops.com"
131:
132: custom-origin
133: http-port: 80
134: origin-keep-alive-timeout: 5
135: origin-read-timeout: 30
136: origin-protocol-policy: 'http-only'
137: end
138: end

[GYRO-393] created by beetlebugorg
@beam-sysuser beam-sysuser added this to the 0.99.1 milestone Oct 8, 2019
@beetlebugorg beetlebugorg modified the milestones: 0.99.1, 0.99.2 Jan 29, 2020
@beetlebugorg beetlebugorg removed this from the 0.99.2 milestone Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants