[英]AWS Codepipeline with Github Version 1
我想使用 Terraform 在 AWS 中創建一個 Codepipeline,它使用 Github 版本 1(使用 AWS Codestar 並不是真正的解決方案)。 它仍然可能嗎?如果可以,如何? 我嘗試創建一個 piepline,但收到以下錯誤消息:
Error creating CodePipeline: InvalidActionDeclarationException: ActionType (Category: 'Source', Provider: 'Github', Owner: 'ThirdParty', Version: '1') in action 'Source' is not available in region EU_CENTRAL_1
編輯:管道代碼
resource "aws_codepipeline" "ecs_pipeline" {
...
stage {
name = "Source"
action {
name = "Source"
category = "Source"
owner = "ThirdParty"
provider = "Github"
version = 1
run_order = 1
output_artifacts = ["SourceArtifact"]
configuration = {
RepositoryName = var.repo_name
BranchName = var.branch
OAuthToken = var.github_oauth_token
Owner = var.repo_owner
}
}
}
stage {
name = "Build"
...
}
stage {
name = "Deploy"
...
}
}
想通了,一些配置變量名稱是錯誤的
stage {
name = "Source"
action {
name = "Source"
category = "Source"
owner = "ThirdParty"
provider = "GitHub"
version = 1
run_order = 1
output_artifacts = ["SourceArtifact"]
configuration = {
Repo = var.repo_name
Branch = var.branch
OAuthToken = var.github_oauth_token
Owner = var.repo_owner
}
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.