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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish pre-built providers for Go #723

Closed
ansgarm opened this issue May 25, 2021 · 6 comments
Closed

Publish pre-built providers for Go #723

ansgarm opened this issue May 25, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request language/golang priority/important-soon High priority, to be worked on as part of our current release or the following one. providers size/medium estimated < 1 week
Milestone

Comments

@ansgarm
Copy link
Member

ansgarm commented May 25, 2021

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

Description

We currently publish pre-built versions of the most common Terraform providers for TypeScript / JavaScript, Python, Java and C#.
We want to do this for Go as well.

References

@skorfmann skorfmann added this to the v0.5 milestone May 26, 2021
@danieldreier danieldreier modified the milestones: v0.4.x, 0.5 Jun 25, 2021
@danieldreier danieldreier added the priority/important-longterm Medium priority, to be worked on within the following 1-2 business quarters. label Jul 2, 2021
@DanielMSchmidt DanielMSchmidt added priority/important-soon High priority, to be worked on as part of our current release or the following one. and removed priority/important-longterm Medium priority, to be worked on within the following 1-2 business quarters. labels Jan 13, 2022
@schersh schersh added this to the 0.12 milestone Jun 14, 2022
@schersh schersh added the size/medium estimated < 1 week label Jun 14, 2022
@ansgarm ansgarm self-assigned this Jul 6, 2022
ansgarm added a commit to cdktf/cdktf-provider-project that referenced this issue Jul 15, 2022
Related to hashicorp/terraform-cdk#723

Co-authored-by: Daniel Schmidt <danielmschmidt92@gmail.com>
@ansgarm
Copy link
Member Author

ansgarm commented Jul 19, 2022

Note to my future self when writing docs for this soon:

go get github.com/hashicorp/cdktf-provider-random-go/random
main.go
package main

import (
	"github.com/aws/constructs-go/constructs/v10"
	"github.com/aws/jsii-runtime-go"
	"github.com/hashicorp/cdktf-provider-random-go/random"
	"github.com/hashicorp/terraform-cdk-go/cdktf"
)

func NewMyStack(scope constructs.Construct, id string) cdktf.TerraformStack {
	stack := cdktf.NewTerraformStack(scope, &id)

	// The code that defines your stack goes here
	random.NewRandomProvider(stack, jsii.String("random"), &random.RandomProviderConfig{})

	random.NewPassword(stack, jsii.String("password"), &random.PasswordConfig{Length: jsii.Number(10)})

	return stack
}

func main() {
	app := cdktf.NewApp(nil)

	NewMyStack(app, "test-go-prebuilt")

	app.Synth()
}

To subscribed readers: This already works, but 馃か

@jamiegs
Copy link

jamiegs commented Aug 10, 2022

Are the https://github.com/terraform-cdk-providers repos going to be made public?

@ansgarm
Copy link
Member Author

ansgarm commented Aug 11, 2022

Hi @jamiegs 馃憢
That is an old Github org. We're currently publishing them under the HashiCorp org
See for example:
https://github.com/hashicorp/cdktf-provider-aws
https://github.com/hashicorp/cdktf-provider-aws-go

This repository manages them: https://github.com/hashicorp/cdktf-repository-manager
And this is the (self-updating) projen template: https://github.com/hashicorp/cdktf-provider-project

Everything is public 馃憤

@ansgarm
Copy link
Member Author

ansgarm commented Aug 11, 2022

Also: This can be closed now as we support pre-built providers for Go since 0.12 馃帀
Or did I miss something, @DanielMSchmidt?

@DanielMSchmidt
Copy link
Contributor

No I just forgot to close it out

@ansgarm ansgarm closed this as completed Aug 11, 2022
@github-actions
Copy link
Contributor

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request language/golang priority/important-soon High priority, to be worked on as part of our current release or the following one. providers size/medium estimated < 1 week
Projects
None yet
Development

No branches or pull requests

6 participants