Skip to content

Commit

Permalink
fixed subscription id
Browse files Browse the repository at this point in the history
  • Loading branch information
vedant990 committed Oct 4, 2024
1 parent d93e52b commit e0abc15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions examples/complete/service_principal_with_certificate/main.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Azurerm provider configuration
provider "azurerm" {
features {}
subscription_id = "068245d4-3c94-42fe-9c4d-9e5e1cabc60c"
subscription_id = "000000-11111-1223-XXX-XXXXXXXXXXXX"
}

module "service-principal" {
source = "./../../.."
name = "app"
environment = "test"
enable_service_principal_certificate = true
end_date = "2027-10-04T01:02:03Z" # Adjusted end date
end_date = "2027-10-04T01:02:03Z"
certificate_value = <<EOF
MIIC5jCCAc6gAwIBAgIIUeUhLYf6UNwwDQYJKoZIhvcNAQELBQAwETEPMA0GA1UE
AxMGVlBOIENBMB4XDTIyMTExMTE0MzA1NFoXDTI1MTExMDE0MzA1NFowETEPMA0G
Expand All @@ -31,7 +31,7 @@ EOF
password_rotation_in_years = 1
assignments = [
{
scope = "/subscriptions/068245d4-3c94-42fe-9c4d-9e5e1cabc60c"
scope = "/subscriptions/000000-11111-1223-XXX-XXXXXXXXXXXX"
role_definition_name = "owner"
},
]
Expand Down
8 changes: 3 additions & 5 deletions examples/complete/service_principal_with_password/main.tf
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
provider "azurerm" {
features {}
subscription_id = "068245d4-3c94-42fe-9c4d-9e5e1cabc60c"
subscription_id = "000000-11111-1223-XXX-XXXXXXXXXXXX"
}
module "service-principal" {
source = "./../../.."
name = "app"
environment = "test"
password_rotation_in_years = 1
end_date = "2027-10-04T01:02:03Z" # Ensure this is within 3 years of the start date

# Adding roles and scope to service principal
end_date = "2027-10-04T01:02:03Z"
assignments = [
{
scope = "/subscriptions/068245d4-3c94-42fe-9c4d-9e5e1cabc60c"
scope = "/subscriptions/000000-11111-1223-XXX-XXXXXXXXXXXX"
role_definition_name = "owner"
},
]
Expand Down

0 comments on commit e0abc15

Please sign in to comment.