-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathcodecommit-repos.tf
More file actions
69 lines (60 loc) · 2.17 KB
/
Copy pathcodecommit-repos.tf
File metadata and controls
69 lines (60 loc) · 2.17 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
resource "aws_codecommit_repository" "platform" {
repository_name = "platform"
description = "Platform GitOps repository for ArgoCD configurations"
tags = {
Name = "platform"
Environment = "workshop"
Purpose = "gitops"
}
}
resource "aws_codecommit_repository" "retail_store_app" {
repository_name = "retail-store-app"
description = "Retail store application repository"
tags = {
Name = "retail-store-app"
Environment = "workshop"
Purpose = "application"
}
}
resource "aws_codecommit_repository" "retail_store_config" {
repository_name = "retail-store-config"
description = "Retail store configuration repository"
tags = {
Name = "retail-store-config"
Environment = "workshop"
Purpose = "configuration"
}
}
# Outputs for use in scripts
output "platform_clone_url_http" {
description = "HTTP clone URL for platform repository"
value = aws_codecommit_repository.platform.clone_url_http
}
output "retail_store_app_clone_url_http" {
description = "HTTP clone URL for retail-store-app repository"
value = aws_codecommit_repository.retail_store_app.clone_url_http
}
output "retail_store_config_clone_url_http" {
description = "HTTP clone URL for retail-store-config repository"
value = aws_codecommit_repository.retail_store_config.clone_url_http
}
output "codecommit_repositories" {
description = "All CodeCommit repository information"
value = {
platform = {
name = aws_codecommit_repository.platform.repository_name
clone_url = aws_codecommit_repository.platform.clone_url_http
arn = aws_codecommit_repository.platform.arn
}
retail_store_app = {
name = aws_codecommit_repository.retail_store_app.repository_name
clone_url = aws_codecommit_repository.retail_store_app.clone_url_http
arn = aws_codecommit_repository.retail_store_app.arn
}
retail_store_config = {
name = aws_codecommit_repository.retail_store_config.repository_name
clone_url = aws_codecommit_repository.retail_store_config.clone_url_http
arn = aws_codecommit_repository.retail_store_config.arn
}
}
}