-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
customAction support for aws codepipeline #6931
Comments
Hello, I dont think this is an issue with aws provider. Because custom action in pipeline is possible to achieve using cloudformation. I am looking for the example how to achieve the same thing using terraform. Any pointers are appreciated. Thank you. |
@terraformbot @bsarbhukan The issue is with the ActionType. The API page for codepipeline lists out what you need to make a build stage (https://docs.aws.amazon.com/codepipeline/latest/APIReference/API_ListActionTypes.html):
Stage = Build << this is valid Because if we swap out owner for AWS and change provider to CodeBuild, the action name can stay the same and terraform builds the pipeline in half a second. The issue remains with why, and unfortunately I've not made any further progress than where you were 20 days ago. Outcome of Terraform Apply:
If you do this manually in CodePipeline through the UI, you can enter all of the above:
As of current, the aws_codepipeline resource provider is incapable of creating a Custom Jenkins Build Stage. This is a massive weakness, as not everyone uses CodeBuild. Not everyone likes putting all their eggs in one basket; some use Jenkins, others GitLab, CircleCI and so on. It's very disappointing that something as basic as this, does not work. |
Hi, @PraetorianSC4 have you found a workaround for this ? |
i am facing the same issue, any ideas ? |
Hello All, |
@amribrahim I manually created Custom Action Provider with name 'updater' via AWS Console and then just use it like this:
It works for me. But it would be nice to have aws_codepipeline_custom_action_type (#8123) merged so we can create it once (or several times) via terraform and use it in our pipelines. |
Hello, resource "null_resource" "action_type" { The null_resource would have a resource id in the state file and won't be executed again through updates as there is no trigger field included. Further, this resource won't be deleted with terraform destroy but who cares this specific resource (actionType) need not be deleted from AWS, as even if deleted it would be still reserved for some reason and only a new version of that actionType can be created. |
This functionality has been released in v4.35.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
This issue was originally opened by @bsarbhukan as hashicorp/terraform#19696. It was migrated here as a result of the provider split. The original body of the issue is below.
Current Terraform Version
Use-cases
We are trying to create a AWS Codepipeline with source->build->deploy->test
We are able to write source and deploy stage using terraform.
For Build and Test stage, we plan to use jenkins (which is custom action or third party)
I had used the same pipeline skeleton using cloudformation and we need to create Custom action for Jenkins followed by codepipeline.
But I dont see any option to create a custom action for jenkins.
I cloned terraform engine code but I dont see anything related to Custom action for aws codepipeline.
I would like to know if such feature is planned to release or anyone has used any work around?
Attempted Solutions
I tried some random option for Owner/Provider (purely guess though) but it keep throwing below error:
Error creating CodePipeline: InvalidActionDeclarationException: ActionType (Category: 'Build', Provider: 'Jenkins', Owner: 'ThirdParty', Version: '1') in action 'Build' is not available
status code: 400
status code: 400
Proposal
Will it be wise to create clousformation stack as resource for this custom action followed by aws code pipeline?
References
The text was updated successfully, but these errors were encountered: