mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-02 14:26:23 -04:00
cli: add --subscriptionID
flag for iam create azure
command (#3328)
* deps: update Terraform azurerm to v4 * Set Azure subscription ID when applying Terraform files * Upgrade azurerm to v4.1.0 * Mark subscriptionID flag as not required * deps: tidy all modules --------- Signed-off-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: edgelessci <edgelessci@users.noreply.github.com>
This commit is contained in:
parent
c6a9c2574b
commit
a295ecaffb
33 changed files with 200 additions and 137 deletions
|
@ -95,6 +95,7 @@ type GCPIAMConfig struct {
|
|||
|
||||
// AzureIAMConfig holds the necessary values for Azure IAM configuration.
|
||||
type AzureIAMConfig struct {
|
||||
SubscriptionID string
|
||||
Location string
|
||||
ServicePrincipal string
|
||||
ResourceGroup string
|
||||
|
@ -167,6 +168,7 @@ func (c *IAMCreator) createAzure(ctx context.Context, cl tfIAMClient, opts *IAMC
|
|||
defer rollbackOnError(c.out, &retErr, &rollbackerTerraform{client: cl}, opts.TFLogLevel)
|
||||
|
||||
vars := terraform.AzureIAMVariables{
|
||||
SubscriptionID: opts.Azure.SubscriptionID,
|
||||
Location: opts.Azure.Location,
|
||||
ResourceGroup: opts.Azure.ResourceGroup,
|
||||
ServicePrincipal: opts.Azure.ServicePrincipal,
|
||||
|
|
|
@ -147,6 +147,7 @@ func azureTerraformVars(conf *config.Config, imageRef string) (*terraform.AzureC
|
|||
}
|
||||
}
|
||||
vars := &terraform.AzureClusterVariables{
|
||||
SubscriptionID: conf.Provider.Azure.SubscriptionID,
|
||||
Name: conf.Name,
|
||||
NodeGroups: nodeGroups,
|
||||
Location: conf.Provider.Azure.Location,
|
||||
|
@ -191,6 +192,7 @@ func azureTerraformVars(conf *config.Config, imageRef string) (*terraform.AzureC
|
|||
|
||||
func azureTerraformIAMVars(conf *config.Config, oldVars terraform.AzureIAMVariables) *terraform.AzureIAMVariables {
|
||||
return &terraform.AzureIAMVariables{
|
||||
SubscriptionID: conf.Provider.Azure.SubscriptionID,
|
||||
Location: conf.Provider.Azure.Location,
|
||||
ServicePrincipal: oldVars.ServicePrincipal,
|
||||
ResourceGroup: conf.Provider.Azure.ResourceGroup,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue