-
Notifications
You must be signed in to change notification settings - Fork 1
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
Azure rm changes #32
base: master
Are you sure you want to change the base?
Azure rm changes #32
Changes from all commits
9632f16
ca5f449
6f8e3ac
a2119d3
a505e58
31dc3a8
f283331
a8a1c50
e7ea3b3
df8c6a8
bcd2f91
565dbe0
cf8bd27
250a403
9b39c62
62c9405
1053578
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.14.9 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
terraform { | ||
backend "azurerm" {} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is what adds saving the state to azure, if it's not here then the state won't get saved to azure ever. note that the state file is keyed by the 'product' var in your Jenkinsfile so you might want to change it to be more specific to your repo: https://github.com/hmcts/ccpay-payment-api-gateway/blob/master/Jenkinsfile_CNP#L5 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like the state config never existed before. But the last time the pipeline executed successfully on 12/10/2020, it was pointing at the state file in question now. Will discuss with project team to change the product name. However, we need to import the existing resource. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated the Jenkins file with new name. |
||
|
||
required_providers { | ||
azurerm = { | ||
source = "hashicorp/azurerm" | ||
version = "~> 2.20.0" | ||
} | ||
} | ||
} |
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.
this should be using one of our terraform modules for api management not an arm template
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.
If this causes the resource to be deleted, we cannot make this change.