You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using prisma_cloudaccount to add AWS accounts to Prisma in a terraform-managed account group. On a subsequent run of the config with the prismacloud_account_group resource, the accounts are removed from the account group even though we are not specifying account_ids on the prismacloud_account_group.
Expected behavior
If account_ids in the prismacloud_account_group resource is not specified, then the value should be computed.
Current behavior
Not specifying account_ids in the prismacloud_account_group causes all accounts to be removed from the group.
Possible solution
Should be a fairly easy fix - just set Computed: true in the schema for account_ids in resource_account_group.go. I'll test and PR.
The text was updated successfully, but these errors were encountered:
If not specified, the `account_ids` attribute of the
`prismacloud_account_group` should be computed, otherwise any existing
accounts are removed from the group.
fixPaloAltoNetworks#115
Maybe this can be added to the documentation?
Or best is to implement @davemac30 's solution, since it's mandatory to provide group-ids for a cloud-account resource.
Describe the bug
We're using
prisma_cloudaccount
to add AWS accounts to Prisma in a terraform-managed account group. On a subsequent run of the config with theprismacloud_account_group
resource, the accounts are removed from the account group even though we are not specifyingaccount_ids
on theprismacloud_account_group
.Expected behavior
If
account_ids
in theprismacloud_account_group
resource is not specified, then the value should be computed.Current behavior
Not specifying
account_ids
in theprismacloud_account_group
causes all accounts to be removed from the group.Possible solution
Should be a fairly easy fix - just set
Computed: true
in the schema foraccount_ids
inresource_account_group.go
. I'll test and PR.The text was updated successfully, but these errors were encountered: