-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathmain.tf
28 lines (23 loc) · 816 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
terraform {
required_providers {
aws = {
version = "~> 4.2.0"
}
}
}
provider "aws" {
region = "eu-west-1"
}
data "aws_caller_identity" "current" {}
data "aws_region" "current" {}
module "setup_cicd_account" {
source = "../../modules/cicd"
custom_tags = var.custom_tags
account_type = "Demo"
pipeline_deployment_bucket_name = "${var.git_repository_name}-${data.aws_caller_identity.current.account_id}"
account_id = data.aws_caller_identity.current.account_id
region = data.aws_region.current.name
roles = var.cross_account_roles
code_pipeline_build_stages = var.code_pipeline_build_stages
git_repository_name = var.git_repository_name
}