AWS Apex Account

Requirements

Name Version
terraform >= 1.5
apex >= 1.0.0-beta
aws >= 5.50.0
time >= 0.11.1

Providers

Name Version
apex >= 1.0.0-beta
aws >= 5.50.0
time >= 0.11.1

Modules

Name Source Version
apex_aws_account ../../modules/apex-aws-account n/a

Resources

Name Type
apex_navigator_aws_account.example resource
apex_navigator_aws_trust_policy_generate.trust_policy resource
aws_iam_role.test_role resource
aws_iam_role_policy.test_policy resource
time_sleep.wait_30_seconds resource
apex_navigator_aws_permissions.example data source

Inputs

Name Description Type Default Required
aws_account_id The AWS account ID that you would like to connect to APEX string n/a yes
aws_policy_name The name of the policy you would like to connect to APEX, defaults to APEX_AWS_POLICY string "APEX_AWS_POLICY" no
aws_role_name The name of the role you would like to connect to APEX, defaults to APEX_AWS_ROLE string "APEX_AWS_ROLE" no

Outputs

No outputs.

Example

/*
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.
*/

#################################
# Apex AWS Account Module
#################################

module "apex_aws_account" {
  # Here points to the apex-aws-account submodule in the modules folder, this will have to update based on your enviorment.
  source = "../../modules/apex-aws-account"
  
  # Required Inputs
  aws_account_id = var.aws_account_id

  # Optional Inputs that have a default value if unset
  aws_policy_name = var.aws_policy_name
  aws_role_name = var.aws_role_name
}