File tree Expand file tree Collapse file tree 6 files changed +32
-0
lines changed Expand file tree Collapse file tree 6 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ data "aws_organizations_organization" "org" {}
Original file line number Diff line number Diff line change 1+ resource "aws_organizations_organizational_unit" "this" {
2+ name = var. name
3+ parent_id = data. aws_organizations_organization . org . roots [0 ]. id
4+ }
Original file line number Diff line number Diff line change 1+ output "id" {
2+ description = " The ID of the organizational unit"
3+ value = aws_organizations_organizational_unit. this . id
4+ }
Original file line number Diff line number Diff line change 1+ provider "aws" {
2+ region = " ap-south-1"
3+
4+ default_tags {
5+ tags = {
6+ ManagedBy = " Terraform"
7+ }
8+ }
9+ }
Original file line number Diff line number Diff line change 1+ variable "name" {
2+ description = " The name of the organizational unit"
3+ type = string
4+ }
Original file line number Diff line number Diff line change 1+ terraform {
2+ required_providers {
3+ aws = {
4+ source = " hashicorp/aws"
5+ version = " ~> 5.51.0"
6+ }
7+ }
8+
9+ required_version = " ~> 1.8.4"
10+ }
You can’t perform that action at this time.
0 commit comments