-
Notifications
You must be signed in to change notification settings - Fork 2
Full chain of deploy added #208
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
Changes from 1 commit
f1d3151
c36d6bd
215896e
e4868fe
5004d5c
c05350d
1959b55
260f233
c97839a
e8567ea
4b21975
0b2bd41
6907e5e
2df6577
87d99cc
7c83e01
279fed6
319c066
e093d1d
cfdd65e
a648fa8
03b8f64
053108d
9b752bc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
|
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| module "resource_group" { | ||
| source = "terraform-ibm-modules/resource-group/ibm" | ||
| version = "1.1.6" | ||
|
|
||
| resource_group_name = var.resource_group == null ? "${var.prefix}-rg" : null | ||
| existing_resource_group_name = var.resource_group | ||
| } | ||
|
|
||
|
|
||
| module "scc_wp" { | ||
| source = "../.." | ||
| name = var.prefix | ||
| region = var.region | ||
| resource_group_id = module.resource_group.resource_group_id | ||
| resource_tags = var.resource_tags | ||
| access_tags = var.access_tags | ||
| scc_wp_service_plan = "graduated-tier" | ||
| } | ||
|
|
||
| module "app_config" { | ||
| source = "../../../terraform-ibm-app-configuration" | ||
RiadhJouini marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| region = var.region | ||
| resource_group_id = module.resource_group.resource_group_id | ||
| app_config_name = "${var.prefix}-app-config" | ||
| app_config_tags = var.resource_tags | ||
|
|
||
| app_config_collections = [ | ||
RiadhJouini marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| { | ||
| name = "${var.prefix}-collection" | ||
| collection_id = "${var.prefix}-collection" | ||
| description = "Collection for ${var.prefix}" | ||
| } | ||
| ] | ||
| } | ||
|
|
||
| module "trusted_profiles" { | ||
| source = "../../../terraform-ibm-trusted-profile/examples/enterprise" | ||
|
||
| region = var.region | ||
| app_config_crn = module.app_config.app_config_crn | ||
| scc_wp_crn = module.scc_wp.crn | ||
| ibmcloud_api_key = var.ibmcloud_api_key | ||
|
|
||
| onboard_account_groups = true | ||
| } | ||
| module "config_aggregator" { | ||
| source = "../../../terraform-ibm-app-configuration/modules/config_aggregator" | ||
|
||
|
|
||
| app_config_instance_guid = module.app_config.app_config_guid | ||
| region = var.region | ||
| enterprise_id = var.enterprise_id | ||
| trusted_profile_template_id = module.trusted_profiles.trusted_profile_template_id | ||
| enterprise_trusted_profile_id = module.trusted_profiles.trusted_profile_app_config_enterprise.profile_id | ||
| general_trusted_profile_id = module.trusted_profiles.trusted_profile_app_config_general.profile_id | ||
|
|
||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| provider "ibm" { | ||
| region = var.region | ||
| ibmcloud_api_key = var.ibmcloud_api_key | ||
| } | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| variable "enterprise_id" { | ||
| type = string | ||
| description = "The Enterprise ID used to scope the Config Aggregator or IAM templates." | ||
| } | ||
|
|
||
| variable "region" { | ||
| type = string | ||
| description = "IBM Cloud region where resources will be deployed." | ||
| } | ||
|
|
||
| variable "prefix" { | ||
| type = string | ||
| description = "Prefix used for naming all provisioned resources." | ||
| } | ||
|
|
||
| variable "resource_group" { | ||
| type = string | ||
| default = null | ||
| description = "Name of an existing resource group to use. If null, a new one will be created using the prefix." | ||
| } | ||
|
|
||
| variable "resource_tags" { | ||
| type = list(string) | ||
| default = [] | ||
| description = "List of tags to apply to resources for tracking and organization." | ||
| } | ||
|
|
||
| variable "access_tags" { | ||
| type = list(string) | ||
| default = [] | ||
| description = "List of access tags to apply to resources for IAM policy scoping." | ||
| } | ||
|
|
||
|
|
||
| variable "ibmcloud_api_key" { | ||
| type = string | ||
| description = "IBM Cloud API key used for authentication." | ||
| sensitive = true | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert this change. You are removing it