File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ resource "random_string" "random" {
2323
2424resource "codefresh_api_key" "new" {
2525 account_id = codefresh_account.test.id
26-
26+ user_id = data.codefresh_account.test_account_user.user_id
2727 name = "tfkey_${random_string.random.result}"
2828
2929 scopes = [
@@ -66,7 +66,8 @@ resource "codefresh_team" "team_1" {
6666## Argument Reference
6767
6868- ` name ` - (Required) The display name for the API key.
69- - ` account_id ` - (Required) The ID of account than should own the new API key.
69+ - ` account_id ` - (Required) The ID of account in which the API key will be created.
70+ - ` user_id ` - (Required) The ID of a user within the referenced ` account_id ` that will own the API key.
7071- ` scopes ` - (Optional) A list of access scopes, that can be targeted. The possible values:
7172 - ` agent `
7273 - ` agents `
You can’t perform that action at this time.
0 commit comments