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

32-bit compilation error with schema generated for AWS::KinesisAnalyticsV2::Application #533

Closed
ewbankkit opened this issue Jun 2, 2022 · 2 comments · Fixed by #535
Closed
Labels
code-generation Relates to the conversion of CloudFormation schema to Terraform schema at buildtime.

Comments

@ewbankkit
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
  • The resources and data sources in this provider are generated from the CloudFormation schema, so they can only support the actions that the underlying schema supports. For this reason submitted bugs should be limited to defects in the generation and runtime code of the provider. Customizing behavior of the resource, or noting a gap in behavior are not valid bugs and should be submitted as enhancements to AWS via the CloudFormation Open Coverage Roadmap.

https://github.com/hashicorp/terraform-provider-awscc/runs/6714602528?check_suite_focus=true:

⨯ release failed after 539.46s error=failed to build for linux_386: exit status 2: go: downloading github.com/hashicorp/terraform-plugin-framework v0.8.0
go: downloading github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.12.5
go: downloading github.com/aws/aws-sdk-go-v2 v1.16.4
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudcontrol v1.10.1
go: downloading github.com/aws/smithy-go v1.11.2
go: downloading github.com/hashicorp/aws-sdk-go-base/v2 v2.0.0-beta.16
go: downloading github.com/hashicorp/go-hclog v1.2.0
go: downloading github.com/hashicorp/terraform-plugin-log v0.4.0
go: downloading github.com/hashicorp/terraform-plugin-go v0.9.1
go: downloading github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.11
go: downloading github.com/jmespath/go-jmespath v0.4.0
go: downloading github.com/aws/aws-sdk-go-v2/config v1.15.9
go: downloading github.com/aws/aws-sdk-go-v2/credentials v1.12.4
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.18.4
go: downloading github.com/aws/aws-sdk-go-v2/service/sts v1.16.6
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: downloading github.com/fatih/color v1.7.0
go: downloading github.com/mattn/go-isatty v0.0.12
go: downloading github.com/google/go-cmp v0.5.8
go: downloading github.com/hashicorp/go-plugin v1.4.4
go: downloading github.com/mitchellh/go-testing-interface v1.14.1
go: downloading google.golang.org/grpc v1.46.0
go: downloading github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.4.5
go: downloading github.com/aws/aws-sdk-go-v2/internal/ini v1.3.12
go: downloading github.com/aws/aws-sdk-go-v2/service/sso v1.11.7
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.9.5
go: downloading github.com/hashicorp/errwrap v1.1.0
go: downloading golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1
go: downloading google.golang.org/protobuf v1.28.0
go: downloading github.com/golang/protobuf v1.5.2
go: downloading github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d
go: downloading github.com/oklog/run v1.0.0
go: downloading golang.org/x/net v0.0.0-20210326060303-6b1[51](https://github.com/hashicorp/terraform-provider-awscc/runs/6714602528?check_suite_focus=true#step:8:52)7762897
go: downloading github.com/mitchellh/go-homedir v1.1.0
go: downloading google.golang.org/genproto v0.0.0-202007110214[54](https://github.com/hashicorp/terraform-provider-awscc/runs/6714602528?check_suite_focus=true#step:8:55)-869866162049
go: downloading golang.org/x/text v0.3.5
# github.com/hashicorp/terraform-provider-awscc/internal/aws/kinesisanalyticsv2
Error: internal/aws/kinesisanalyticsv2/application_resource_gen.go:817:37: constant 922337203685477[58](https://github.com/hashicorp/terraform-provider-awscc/runs/6714602528?check_suite_focus=true#step:8:59)07 overflows int
Error: internal/aws/kinesisanalyticsv2/application_resource_gen.go:844:37: constant 9223372036854775807 overflows int

Error: The process '/opt/hostedtoolcache/goreleaser-action/1.9.2/x[64](https://github.com/hashicorp/terraform-provider-awscc/runs/6714602528?check_suite_focus=true#step:8:65)/goreleaser' failed with exit code 1

Relates: #532.
Similar: hashicorp/terraform-provider-aws#24890, hashicorp/terraform-provider-aws#24938.

@ewbankkit ewbankkit added the code-generation Relates to the conversion of CloudFormation schema to Terraform schema at buildtime. label Jun 2, 2022
@ewbankkit
Copy link
Contributor Author

As this error is in a validator, look at switching to https://github.com/hashicorp/terraform-plugin-framework-validators/releases/tag/v0.1.0.

@ewbankkit
Copy link
Contributor Author

For expediency I will just change the local validators to accept int64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-generation Relates to the conversion of CloudFormation schema to Terraform schema at buildtime.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant