apex_navigator_aws_account (Resource)
This Terraform resource is used to manage aws accounts on Apex Navigator. We can connect, read, update aws role and disconnect the aws accounts using this resource. We can also import an existing aws account from Apex Navigator.
Example Usage
/*
Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
resource "apex_navigator_aws_account" "example" {
# AWS account ID
account_id = "123456789123"
# AWS role ARN
role_arn = "arn:aws:iam::123456789123:role/example-role-rn"
}
output "examples_aws_account" {
value = apex_navigator_aws_account.example
}
Schema
Required
account_id
(String) The ID of the AWS account, this value can not be updated after connection.role_arn
(String) The role ARN of the AWS account
Optional
aws_account_alias
(String) The alias of the AWS accountstatus
(String) The status of the AWS account
Import
Import is supported using the following syntax:
/*
Copyright (c) 2021-2024 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
terraform import apex_navigator_aws_account.example "<account-id>"