Allow cleanup of proven region group resources
Distinguish fixed hosts from exact unindexed group module calls, requiring constant group mode and no instance in prior, changed or planned state. Keep fixed identities, unknown destinations and module moves protected. Admit the group resource inventory to cleanup manifests only with reviewed creation evidence, and cover partial and full cleanup with plan fixtures. Independent Opus review of this code tree: READY, 0 P1 and 0 P2. All four census units and both envelopes approved locally; no amadan write. P3 follow-ups (no new review round): - Check tofu/python3 availability in the first authorized CI run. - Note the apply-time queue URL equality check in the retry rollback card. - Consider module-source provenance only under a future scoped requirement; this fix implements the requested constant-mode/no-instance proof.
Co-Authored-By: GPT-6 Astra <noreply@openai.com>
5 files changed,
+5,734
−19
scripts/check-region-group-plan.py+107 −19scripts/check_region_group_plan_test.py+269 −0scripts/testdata/region-group-plan/tofu-1.12-group-create.json+1,740 −0scripts/testdata/region-group-plan/tofu-1.12-group-full-destroy.json+1,942 −0scripts/testdata/region-group-plan/tofu-1.12-group-partial-destroy.json+1,676 −0
CI failed — run details
Intent
Attributed to this commit: 33.0 g CO₂e (3,689,137 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-p3b1-fixes, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/scripts/check-region-group-plan.py b/scripts/check-region-group-plan.py| index c95874082..ef697d1b3 100755 |
| --- a/scripts/check-region-group-plan.py |
| +++ b/scripts/check-region-group-plan.py |
| @@ -33,6 +33,28 @@ DISPOSABLE = {('aws_eip', 'public'), ('aws_lb', 'nlb'), ('aws_security_group', ' |
| ('aws_lb_target_group', 'target'), ('aws_lb_listener', 'tcp'), |
| ('aws_lb_target_group_attachment', 'fixed'), |
| ('aws_autoscaling_group', 'group'), ('aws_launch_template', 'group')} |
| +# Managed resources region-host creates in group mode (main.tf and group*.tf). |
| +# A cleanup manifest may name these only inside a proven group module. |
| +GROUP_DISPOSABLE = { |
| + ('aws_iam_role', 'host'), ('aws_iam_instance_profile', 'host'), |
| + ('aws_iam_role_policy', 'host_buckets'), ('aws_iam_role_policy', 'host_route53'), |
| + ('aws_iam_role_policy', 'host_steering'), ('aws_iam_role_policy', 'host_metrics'), |
| + ('aws_iam_role_policy', 'host_ssm_parameter_scope'), |
| + ('aws_iam_role_policy', 'host_release_key_deny'), ('aws_iam_role_policy', 'host_terminations'), |
| + ('aws_iam_role_policy', 'group'), ('aws_iam_role_policy_attachment', 'host_ssm'), |
| + ('aws_sns_topic', 'alerts'), ('aws_sns_topic_subscription', 'alerts_email'), |
| + ('aws_sqs_queue', 'terminations'), ('aws_sqs_queue_policy', 'terminations'), |
| + ('aws_cloudwatch_event_rule', 'terminations'), ('aws_cloudwatch_event_target', 'terminations'), |
| + ('aws_security_group', 'group'), ('aws_launch_template', 'group'), |
| + ('aws_autoscaling_group', 'group'), ('aws_ssm_parameter', 'group_queue'), |
| + ('aws_ssm_parameter', 'group_ingress'), |
| + ('aws_cloudwatch_metric_alarm', 'termination_queue_age'), |
| + ('aws_cloudwatch_metric_alarm', 'group_capacity'), ('aws_cloudwatch_metric_alarm', 'group_memory'), |
| + ('aws_cloudwatch_metric_alarm', 'group_clock'), |
| + ('aws_cloudwatch_metric_alarm', 'group_clock_missing'), |
| + ('aws_cloudwatch_event_rule', 'group_launch_failed'), |
| + ('aws_cloudwatch_event_target', 'group_launch_failed'), |
| + ('aws_sns_topic_policy', 'group_launch_failed')} |
| MISSING = object() |
| @@ -51,9 +73,61 @@ def address_parts(address): |
| return ADDRESS.fullmatch(address) |
| -def fixed(kind, name): |
| - return (kind == 'aws_instance' or kind in RULES or |
| - kind in {'aws_security_group', 'aws_eip'} and name == 'host' or |
| +def module_prefix(address, parts): |
| + return address[:parts.start('data') if parts['data'] else parts.start('type')] |
| + |
| + |
| +def group_module(document, prefix): |
| + # Only an unindexed call whose mode is the literal "group" is proven. |
| + # Each enclosing call must resolve exactly and carry no count or for_each. |
| + if not re.fullmatch(rf'(?:module\.{IDENT}\.)+', prefix): |
| + return False |
| + configuration = document.get('configuration') |
| + module = configuration.get('root_module') if isinstance(configuration, dict) else None |
| + call = None |
| + for name in re.findall(rf'module\.({IDENT})\.', prefix): |
| + calls = module.get('module_calls') if isinstance(module, dict) else None |
| + call = calls.get(name) if isinstance(calls, dict) else None |
| + if (not isinstance(call, dict) or |
| + 'count_expression' in call or 'for_each_expression' in call): |
| + return False |
| + module = call.get('module') |
| + expressions = call.get('expressions') |
| + return isinstance(expressions, dict) and same(expressions.get('mode'), {'constant_value': 'group'}) |
| + |
| + |
| +def group_modules(document, rows): |
| + # A group module holds no box: any aws_instance under its prefix, in any |
| + # source, leaves the whole subtree on the fixed rules. |
| + found = [] |
| + for row in rows: |
| + if isinstance(row, dict): |
| + found.append((row.get('address'), row.get('type'))) |
| + if 'previous_address' in row: |
| + found.append((row['previous_address'], None)) |
| + for section in ['prior_state', 'planned_values']: |
| + found += [(row.get('address'), row.get('type')) for row in state_resources(document, section)] |
| + prefixes, boxes = set(), [] |
| + for address, kind in found: |
| + parts = address_parts(address) |
| + if parts is None: |
| + if kind == 'aws_instance' or 'aws_instance' in str(address): |
| + return set() |
| + continue |
| + prefix = module_prefix(address, parts) |
| + prefixes.add(prefix) |
| + if 'aws_instance' in {kind, parts['type']}: |
| + boxes.append(re.sub(INDEX, '', prefix)) |
| + return {prefix for prefix in prefixes if group_module(document, prefix) and |
| + not any(box.startswith(prefix) for box in boxes)} |
| + |
| + |
| +def fixed(kind, name, prefix, groups): |
| + if kind == 'aws_instance' or kind in RULES: |
| + return True |
| + if prefix in groups: |
| + return False |
| + return (kind in {'aws_security_group', 'aws_eip'} and name == 'host' or |
| kind == 'aws_cloudwatch_metric_alarm' and name == 'host_auto_recover' or |
| kind in HOST_IAM and (name == 'host' or name.startswith('host_') or |
| name == 'store_user_boundary')) |
| @@ -85,7 +159,7 @@ def changes(document): |
| return rows + drift |
| -def parse_resource(row): |
| +def parse_resource(row, groups): |
| if not isinstance(row, dict): |
| raise Refused(UNKNOWN % '<resource>') |
| address = row.get('address') |
| @@ -115,8 +189,13 @@ def parse_resource(row): |
| previous = row.get('previous_address') |
| if previous is not None: |
| old = address_parts(previous) |
| + prefix = module_prefix(address, parts) |
| + if (old is not None and module_prefix(previous, old) != prefix and |
| + (module_prefix(previous, old) in groups or prefix in groups)): |
| + raise Refused(FIXED % (address, '/'.join(actions))) |
| if (old is not None and |
| - (fixed(old['type'], old['name']) or fixed(parts['type'], parts['name']) or |
| + (fixed(old['type'], old['name'], module_prefix(previous, old), groups) or |
| + fixed(parts['type'], parts['name'], prefix, groups) or |
| old['type'] in {'aws_eip', 'aws_autoscaling_group'} or |
| parts['type'] in {'aws_eip', 'aws_autoscaling_group'}) and |
| (old['type'], old['name']) != (parts['type'], parts['name'])): |
| @@ -234,10 +313,11 @@ def strings(value): |
| yield from strings(child) |
| -def fixed_identities(resources): |
| +def fixed_identities(resources, groups): |
| identities = set() |
| - for _, kind, name, values in resources: |
| - if not fixed(kind, name): |
| + for address, kind, name, values in resources: |
| + parts = address_parts(address) |
| + if not fixed(kind, name, parts and module_prefix(address, parts), groups): |
| continue |
| keys = [] |
| if kind == 'aws_instance': |
| @@ -253,7 +333,7 @@ def fixed_identities(resources): |
| return identities |
| -def cleanup_entries(manifest, rows): |
| +def cleanup_entries(manifest, rows, groups): |
| if manifest is None: |
| return set() |
| if (not isinstance(manifest, dict) or |
| @@ -265,6 +345,7 @@ def cleanup_entries(manifest, rows): |
| # IDs, filled in after that apply, bind cleanup to those exact allocations. |
| creation = manifest['creation_plan'] |
| try: |
| + creation_groups = group_modules(creation, changes(creation)) |
| created = {row['address']: row for row in changes(creation)} |
| prior_eips = {row['values'].get('id') for row in state_resources(creation) |
| if row.get('type') == 'aws_eip'} |
| @@ -285,13 +366,18 @@ def cleanup_entries(manifest, rows): |
| address = entry['address'] |
| if address in disposable or address in prior_addresses or address not in current or address not in created: |
| raise Refused(MANIFEST) |
| - _, kind, name, change = parse_resource(current[address]) |
| - if (fixed(kind, name) or (kind, name) not in DISPOSABLE or |
| + _, kind, name, change = parse_resource(current[address], groups) |
| + prefix = module_prefix(address, address_parts(address)) |
| + # Group kinds need both plans to prove the same group module. |
| + group_kind = ((kind, name) in GROUP_DISPOSABLE and |
| + prefix in groups and prefix in creation_groups) |
| + if (fixed(kind, name, prefix, groups) or |
| + ((kind, name) not in DISPOSABLE and not group_kind) or |
| current[address]['mode'] != 'managed' or change['actions'] != ['delete'] or |
| unknown(change['after_unknown'])): |
| raise Refused(MANIFEST) |
| birth = created[address] |
| - _, _, _, first = parse_resource(birth) |
| + _, _, _, first = parse_resource(birth, creation_groups) |
| if (birth['mode'] != 'managed' or first['actions'] != ['create'] or |
| 'previous_address' in birth): |
| raise Refused(MANIFEST) |
| @@ -363,9 +449,10 @@ def group_role_provenance(document, parsed, address, kind, change, paths, identi |
| def check(document, entries, manifest): |
| rows = changes(document) |
| - parsed = [parse_resource(row) for row in rows] |
| + groups = group_modules(document, rows) |
| + parsed = [parse_resource(row, groups) for row in rows] |
| entries = allow_entries(entries) |
| - disposable = cleanup_entries(manifest, rows) |
| + disposable = cleanup_entries(manifest, rows, groups) |
| existing = [(address, kind, name, change['before']) |
| for row, (address, kind, name, change) in zip(rows, parsed) |
| if row['mode'] == 'managed' and change['before'] is not None] |
| @@ -376,8 +463,8 @@ def check(document, entries, manifest): |
| parts = address_parts(address) |
| if parts is None or not isinstance(name, str): |
| raise Refused(UNKNOWN % address) |
| - if fixed(kind, name) and kind not in RULES: |
| - fixed_modules.add(address[:parts.start('type')]) |
| + if fixed(kind, name, module_prefix(address, parts), groups) and kind not in RULES: |
| + fixed_modules.add(module_prefix(address, parts)) |
| created = {address for address, _, _, change in parsed |
| if change['actions'] == ['create']} |
| existing_addresses = {address for address, _, _, _ in existing} |
| @@ -388,7 +475,7 @@ def check(document, entries, manifest): |
| planned += [(address, kind, name, change['after']) |
| for row, (address, kind, name, change) in zip(rows, parsed) |
| if row['mode'] == 'managed' and change['before'] is not None and change['after'] is not None] |
| - identities = fixed_identities(existing + planned) |
| + identities = fixed_identities(existing + planned, groups) |
| for row, (address, kind, name, change) in zip(rows, parsed): |
| if row['mode'] == 'data': |
| continue |
| @@ -406,14 +493,15 @@ def check(document, entries, manifest): |
| if not sg or unknown(change['after_unknown']): |
| raise Refused(FIXED % (address, 'create')) |
| parts = address_parts(address) |
| - same_module = address[:parts.start('type')] in fixed_modules |
| + prefix = module_prefix(address, parts) |
| + same_module = prefix in fixed_modules |
| related = any(value in identities for value in strings([before, after])) |
| if kind == 'aws_lb_target_group_attachment' and actions in [['create'], ['delete']]: |
| related = False |
| if unknown(change['after_unknown']) and (kind == 'aws_eip_association' or |
| kind in HOST_IAM and same_module): |
| related = True |
| - is_fixed = fixed(kind, name) or related |
| + is_fixed = fixed(kind, name, prefix, groups) or related |
| if before is None: |
| if related or is_fixed and same_module: |
| raise Refused(FIXED % (address, '/'.join(actions))) |
diff --git a/scripts/check_region_group_plan_test.py b/scripts/check_region_group_plan_test.py| index 75d8f4e6a..322e4ebf7 100644 |
| --- a/scripts/check_region_group_plan_test.py |
| +++ b/scripts/check_region_group_plan_test.py |
| @@ -460,5 +460,274 @@ class GateTests(unittest.TestCase): |
| self.assertEqual(2, result.returncode) |
| +GROUP = 'module.host_ie_group.' |
| +FIXED_MODULE = 'module.host_ie.' |
| + |
| + |
| +def group_manifest(document, creation, addresses=None): |
| + addresses = addresses or [row['address'] for row in document['resource_changes']] |
| + return dict(purpose='Remove the failed group apply', approval='review-123', |
| + resources=[dict(address=a) for a in addresses], creation_plan=creation) |
| + |
| + |
| +def state_children(document, section): |
| + root = document[section]['values' if section == 'prior_state' else 'root_module'] |
| + return (root if section == 'planned_values' else root['root_module'])['child_modules'] |
| + |
| + |
| +class GroupModuleTests(unittest.TestCase): |
| + fixture = GateTests.fixture |
| + gate = GateTests.gate |
| + |
| + def box(self, address='module.host_ie_group.aws_instance.host[0]'): |
| + return dict(address=address, mode='managed', type='aws_instance', name='host', index=0, |
| + provider_name='registry.opentofu.org/hashicorp/aws', schema_version=0, |
| + values={'id': 'i-0hidden1'}, sensitive_values={}) |
| + |
| + def test_partial_apply_cleanup_with_and_without_manifest(self): |
| + # The 2026-11-04 dev rollback: 18 group resources, targeted destroy. |
| + document = self.fixture('tofu-1.12-group-partial-destroy.json') |
| + rows = document['resource_changes'] |
| + self.assertEqual(18, len(rows)) |
| + self.assertEqual({'delete'}, {a for row in rows for a in row['change']['actions']}) |
| + self.assertTrue(all(row['address'].startswith(GROUP) for row in rows)) |
| + self.assertEqual(sorted([('aws_iam_role_policy', 6), ('aws_iam_role', 1), |
| + ('aws_iam_instance_profile', 1), ('aws_iam_role_policy_attachment', 1), |
| + ('aws_sqs_queue', 1), ('aws_sqs_queue_policy', 1), |
| + ('aws_cloudwatch_event_rule', 1), ('aws_cloudwatch_event_target', 1), |
| + ('aws_ssm_parameter', 2), ('aws_sns_topic', 1), |
| + ('aws_sns_topic_subscription', 1), ('aws_security_group', 1)]), |
| + sorted((k, [r['type'] for r in rows].count(k)) for k in {r['type'] for r in rows})) |
| + self.assertIn('before_identity', rows[0]['change']) |
| + self.assertIn('checked 18 resources', self.gate(document, 0).stdout) |
| + creation = self.fixture('tofu-1.12-group-create.json') |
| + self.gate(creation, 0) |
| + self.gate(document, 0, cleanup=group_manifest(document, creation)) |
| + |
| + def test_full_destroy_needs_manifest_for_group(self): |
| + document = self.fixture('tofu-1.12-group-full-destroy.json') |
| + creation = self.fixture('tofu-1.12-group-create.json') |
| + self.assertIn('would decrease', self.gate(document, 1).stderr) |
| + asg = [GROUP + 'aws_autoscaling_group.group[0]', GROUP + 'aws_launch_template.group[0]'] |
| + self.gate(document, 0, cleanup=group_manifest(document, creation, asg)) |
| + self.gate(document, 0, cleanup=group_manifest(document, creation)) |
| + |
| + def test_fixed_module_iam_keeps_original_rules(self): |
| + document = self.fixture('tofu-1.12-group-partial-destroy.json') |
| + fixed = {r['address']: r for r in state_children(document, 'prior_state')[0]['resources']} |
| + policy = fixed[FIXED_MODULE + 'aws_iam_role_policy.host_metrics'] |
| + profile = fixed[FIXED_MODULE + 'aws_iam_instance_profile.host'] |
| + role = document['resource_changes'][0] |
| + self.assertEqual(GROUP + 'aws_iam_role.host', role['address']) |
| + for name, row, expected in [ |
| + ('fixed policy update', resource(policy['address'], policy['type'], policy['name'], |
| + policy['values'], dict(policy['values'], policy='{}')), 1), |
| + ('fixed profile delete', resource(profile['address'], profile['type'], profile['name'], |
| + profile['values'], None, actions=['delete']), 1), |
| + ('group role update', resource(role['address'], 'aws_iam_role', 'host', |
| + role['change']['before'], dict(role['change']['before'], description='group')), 0)]: |
| + with self.subTest(name): |
| + bad = copy.deepcopy(document) |
| + bad['resource_changes'] = [row] |
| + result = self.gate(bad, expected) |
| + if expected: |
| + self.assertIn('fixed box resources cannot be changed', result.stderr) |
| + |
| + def test_unproven_group_module_keeps_original_rules(self): |
| + call = ['configuration', 'root_module', 'module_calls', 'host_ie_group'] |
| + |
| + def at(document, path): |
| + for key in path: |
| + document = document[key] |
| + return document |
| + mutations = { |
| + 'no configuration': lambda d: d.pop('configuration'), |
| + 'no mode': lambda d: at(d, call + ['expressions']).pop('mode'), |
| + 'mode from a variable': lambda d: at(d, call + ['expressions']).update( |
| + mode={'references': ['var.mode']}), |
| + 'mode constant fixed': lambda d: at(d, call + ['expressions']).update( |
| + mode={'constant_value': 'fixed'}), |
| + 'mode with extra keys': lambda d: at(d, call + ['expressions']).update( |
| + mode={'constant_value': 'group', 'references': []}), |
| + 'count on the call': lambda d: at(d, call).update(count_expression={'constant_value': 1}), |
| + 'for_each on the call': lambda d: at(d, call).update( |
| + for_each_expression={'constant_value': {'a': 1}}), |
| + 'box in prior_state': lambda d: state_children(d, 'prior_state')[1]['resources'].append(self.box()), |
| + 'box in planned_values': lambda d: state_children(d, 'planned_values').append( |
| + {'address': 'module.host_ie_group', 'resources': [self.box()]}), |
| + 'box in resource_changes': lambda d: d['resource_changes'].append(resource( |
| + GROUP + 'aws_instance.host[0]', before={'id': 'i-0hidden1'}, after={'id': 'i-0hidden1'}, |
| + actions=['no-op'])), |
| + 'box in resource_drift': lambda d: d.update(resource_drift=[resource( |
| + GROUP + 'aws_instance.host[0]', before={'id': 'i-0hidden1'}, after={'id': 'i-0hidden1'})]), |
| + 'box moved out of the group': lambda d: d['resource_changes'].append(resource( |
| + 'module.elsewhere.aws_instance.host', before={'id': 'i-0hidden1'}, after={'id': 'i-0hidden1'}, |
| + actions=['no-op'], previous_address=GROUP + 'aws_instance.host')), |
| + 'box in a nested child': lambda d: state_children(d, 'prior_state')[1].setdefault( |
| + 'child_modules', []).append({'address': GROUP + 'module.child', |
| + 'resources': [self.box(GROUP + 'module.child.aws_instance.x')]}), |
| + 'box in an indexed instance of the call': lambda d: state_children(d, 'prior_state').append( |
| + {'address': 'module.host_ie_group["b"]', |
| + 'resources': [self.box('module.host_ie_group["b"].aws_instance.host[0]')]}), |
| + 'box in an indexed nested child': lambda d: state_children(d, 'prior_state')[1].setdefault( |
| + 'child_modules', []).append({'address': GROUP + 'module.group_ingress[0]', |
| + 'resources': [self.box(GROUP + 'module.group_ingress[0].aws_instance.x')]}), |
| + } |
| + for name, mutate in mutations.items(): |
| + with self.subTest(name): |
| + document = self.fixture('tofu-1.12-group-partial-destroy.json') |
| + mutate(document) |
| + self.assertIn('fixed box resources cannot be changed', self.gate(document, 1).stderr) |
| + |
| + def test_indexed_group_call_is_not_proven(self): |
| + document = self.fixture('tofu-1.12-group-partial-destroy.json') |
| + text = json.dumps(document).replace('"module.host_ie_group', '"module.host_ie_group[0]') |
| + document = json.loads(text) |
| + document['configuration']['root_module']['module_calls']['host_ie_group']['count_expression'] = { |
| + 'constant_value': 1} |
| + self.gate(document, 1) |
| + del document['configuration']['root_module']['module_calls']['host_ie_group']['count_expression'] |
| + self.gate(document, 1) |
| + |
| + def test_module_boundaries(self): |
| + # A box in a module whose name merely starts with the group's does not count. |
| + document = self.fixture('tofu-1.12-group-partial-destroy.json') |
| + state_children(document, 'prior_state').append( |
| + {'address': 'module.host_ie_group_b', 'resources': [self.box('module.host_ie_group_b.aws_instance.host[0]')]}) |
| + self.gate(document, 0) |
| + # Nested calls resolve exactly: outer (fixed) holds inner (group). |
| + document = self.fixture('tofu-1.12-group-partial-destroy.json') |
| + text = json.dumps(document).replace('"module.host_ie_group', '"module.outer.module.host_ie_group') |
| + document = json.loads(text) |
| + calls = document['configuration']['root_module']['module_calls'] |
| + inner = calls.pop('host_ie_group') |
| + calls['outer'] = {'source': './outer', 'expressions': {}, 'module': {'module_calls': {'host_ie_group': inner}}} |
| + self.gate(document, 0) |
| + for mutation in ['inner at root only', 'mode on outer only', 'count on outer']: |
| + with self.subTest(mutation): |
| + bad = copy.deepcopy(document) |
| + calls = bad['configuration']['root_module']['module_calls'] |
| + if mutation == 'inner at root only': |
| + calls['host_ie_group'] = calls['outer']['module']['module_calls'].pop('host_ie_group') |
| + elif mutation == 'mode on outer only': |
| + calls['outer']['expressions']['mode'] = {'constant_value': 'group'} |
| + del calls['outer']['module']['module_calls']['host_ie_group']['expressions']['mode'] |
| + else: |
| + calls['outer']['count_expression'] = {'constant_value': 1} |
| + self.gate(bad, 1) |
| + # A fixed child module is never exempt through its group parent. |
| + document = self.fixture('tofu-1.12-group-partial-destroy.json') |
| + group_call = document['configuration']['root_module']['module_calls']['host_ie_group'] |
| + group_call['module']['module_calls']['fixed_child'] = {'source': './child', 'expressions': {}, |
| + 'module': {'resources': []}} |
| + child = GROUP + 'module.fixed_child.' |
| + for kind, name in [('aws_iam_role_policy', 'host_metrics'), ('aws_iam_instance_profile', 'host'), |
| + ('aws_iam_role', 'host')]: |
| + with self.subTest(child=kind): |
| + bad = copy.deepcopy(document) |
| + bad['resource_changes'] = [resource(child + f'{kind}.{name}', kind, name, |
| + {'id': 'child', 'name': 'child'}, None, actions=['delete'])] |
| + self.gate(bad, 1) |
| + # The group's own nested ingress call is indexed and keeps original rules. |
| + bad = copy.deepcopy(document) |
| + bad['resource_changes'] = [resource(GROUP + 'module.group_ingress[0].aws_iam_role.host', 'aws_iam_role', |
| + 'host', {'name': 'x'}, None, actions=['delete'])] |
| + self.gate(bad, 1) |
| + |
| + def test_fixed_identity_relations_still_refuse(self): |
| + document = self.fixture('tofu-1.12-group-partial-destroy.json') |
| + creation = self.fixture('tofu-1.12-group-create.json') |
| + rows = {row['address']: row for row in document['resource_changes']} |
| + for address, field, value in [ |
| + (GROUP + 'aws_iam_role_policy.host_metrics', 'role', 'carlos-dev-ie'), |
| + (GROUP + 'aws_iam_instance_profile.host', 'role', 'carlos-dev-ie'), |
| + (GROUP + 'aws_security_group.group[0]', 'id', 'sg-0fixed1'), |
| + (GROUP + 'aws_sqs_queue_policy.terminations', 'policy', 'i-0fixed1')]: |
| + for manifest in [False, True]: |
| + with self.subTest(address=address, manifest=manifest): |
| + bad = copy.deepcopy(document) |
| + row = next(r for r in bad['resource_changes'] if r['address'] == address) |
| + row['change']['before'][field] = value |
| + cleanup = group_manifest(bad, creation, [address]) if manifest else None |
| + self.gate(bad, 1, cleanup=cleanup) |
| + # A group update that points a policy at the fixed role is refused too. |
| + role = rows[GROUP + 'aws_iam_role_policy.host_metrics'] |
| + before = role['change']['before'] |
| + bad = copy.deepcopy(document) |
| + bad['resource_changes'] = [resource(role['address'], role['type'], role['name'], |
| + before, dict(before, role='carlos-dev-ie'))] |
| + self.gate(bad, 1) |
| + |
| + def test_moves_across_the_group_boundary_are_refused(self): |
| + document = self.fixture('tofu-1.12-group-partial-destroy.json') |
| + for old, new in [(FIXED_MODULE + 'aws_iam_role.host', GROUP + 'aws_iam_role.host'), |
| + (GROUP + 'aws_iam_role.host', 'module.other.aws_iam_role.host'), |
| + (GROUP + 'aws_sqs_queue.terminations', 'module.other.aws_sqs_queue.terminations')]: |
| + with self.subTest(old=old, new=new): |
| + bad = copy.deepcopy(document) |
| + parts = new.rsplit('.', 2) |
| + values = {'name': 'carlos-dev-ie-group'} |
| + bad['resource_changes'] = [resource(new, parts[1], parts[2], values, values, |
| + actions=['no-op'], previous_address=old)] |
| + self.assertIn('fixed box resources cannot be changed', self.gate(bad, 1).stderr) |
| + # Index-only moves inside the group stay readable. |
| + bad = copy.deepcopy(document) |
| + values = {'name': 'carlos-dev-ie-group'} |
| + bad['resource_changes'] = [resource(GROUP + 'aws_sqs_queue.terminations', 'aws_sqs_queue', 'terminations', |
| + values, values, actions=['no-op'], |
| + previous_address=GROUP + 'aws_sqs_queue.terminations[0]')] |
| + self.gate(bad, 0) |
| + |
| + def test_group_manifest_refusals(self): |
| + document = self.fixture('tofu-1.12-group-partial-destroy.json') |
| + creation = self.fixture('tofu-1.12-group-create.json') |
| + queue = GROUP + 'aws_sqs_queue.terminations' |
| + self.gate(document, 0, cleanup=group_manifest(document, creation, [queue])) |
| + fixed_row = resource(FIXED_MODULE + 'aws_iam_role.host', 'aws_iam_role', 'host', |
| + {'name': 'carlos-dev-ie'}, None, actions=['delete']) |
| + cases = {} |
| + bad = copy.deepcopy(document) |
| + bad['resource_changes'].append(fixed_row) |
| + born = copy.deepcopy(creation) |
| + born['resource_changes'].append(resource(fixed_row['address'], 'aws_iam_role', 'host', None, |
| + {'name': 'carlos-dev-ie'}, actions=['create'])) |
| + born['prior_state']['values']['root_module']['child_modules'][0]['resources'] = [ |
| + r for r in state_children(born, 'prior_state')[0]['resources'] if r['address'] != fixed_row['address']] |
| + cases['fixed entry'] = (bad, group_manifest(bad, born, [fixed_row['address']])) |
| + bad = copy.deepcopy(creation) |
| + bad['resource_changes'] = [r for r in bad['resource_changes'] if r['address'] != queue] |
| + cases['not created'] = (document, group_manifest(document, bad, [queue])) |
| + bad = copy.deepcopy(creation) |
| + del bad['configuration']['root_module']['module_calls']['host_ie_group']['expressions']['mode'] |
| + cases['creation plan unproven'] = (document, group_manifest(document, bad, [queue])) |
| + bad = copy.deepcopy(creation) |
| + state_children(bad, 'prior_state').append({'address': 'module.host_ie_group', 'resources': [self.box()]}) |
| + cases['creation plan holds a box'] = (document, group_manifest(document, bad, [queue])) |
| + bad = copy.deepcopy(creation) |
| + next(r for r in bad['resource_changes'] if r['address'] == queue)['change'].update( |
| + actions=['no-op'], before={'name': 'x'}, after={'name': 'x'}, after_unknown={}) |
| + cases['pre-existing'] = (document, group_manifest(document, bad, [queue])) |
| + current = copy.deepcopy(document) |
| + next(r for r in current['resource_changes'] if r['address'] == queue)['change'].update( |
| + actions=['update'], after={'name': 'x'}) |
| + cases['not a delete'] = (current, group_manifest(current, creation, [queue])) |
| + # A group kind outside any group module is not admitted. |
| + root = 'aws_sqs_queue.terminations' |
| + current = plan(resource(root, 'aws_sqs_queue', 'terminations', {'name': 'x'}, None, actions=['delete'])) |
| + birth = plan(resource(root, 'aws_sqs_queue', 'terminations', None, {'name': 'x'}, actions=['create'])) |
| + cases['root module'] = (current, group_manifest(current, birth, [root])) |
| + bad = copy.deepcopy(document) |
| + bad['resource_changes'].append(resource('module.host_ie_group.aws_cloudwatch_metric_alarm.unlisted', |
| + 'aws_cloudwatch_metric_alarm', 'unlisted', {'alarm_name': 'x'}, None, actions=['delete'])) |
| + born = copy.deepcopy(creation) |
| + born['resource_changes'].append(resource(bad['resource_changes'][-1]['address'], |
| + 'aws_cloudwatch_metric_alarm', 'unlisted', None, {'alarm_name': 'x'}, actions=['create'])) |
| + cases['unlisted kind'] = (bad, group_manifest(bad, born, [bad['resource_changes'][-1]['address']])) |
| + for name, (current, manifest) in cases.items(): |
| + with self.subTest(name): |
| + result = self.gate(current, 1, cleanup=manifest) |
| + self.assertIn('cleanup manifest', result.stderr) |
| + |
| + |
| if __name__ == '__main__': |
| unittest.main() |
diff --git a/scripts/testdata/region-group-plan/tofu-1.12-group-create.json b/scripts/testdata/region-group-plan/tofu-1.12-group-create.json| new file mode 100644 |
| index 000000000..a4f9e0b86 |
| --- /dev/null |
| +++ b/scripts/testdata/region-group-plan/tofu-1.12-group-create.json |
| @@ -0,0 +1,1740 @@ |
| +{ |
| + "configuration": { |
| + "provider_config": { |
| + "aws": { |
| + "expressions": { |
| + "profile": { |
| + "constant_value": "example" |
| + }, |
| + "region": { |
| + "constant_value": "eu-west-1" |
| + } |
| + }, |
| + "full_name": "registry.opentofu.org/hashicorp/aws", |
| + "name": "aws" |
| + } |
| + }, |
| + "root_module": { |
| + "module_calls": { |
| + "host_ie": { |
| + "expressions": { |
| + "iam_name": { |
| + "constant_value": "carlos-dev-ie" |
| + }, |
| + "instance_type": { |
| + "constant_value": "t4g.small" |
| + }, |
| + "name": { |
| + "constant_value": "carlos-dev-ie" |
| + } |
| + }, |
| + "module": { |
| + "resources": [ |
| + { |
| + "address": "aws_instance.host", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_instance" |
| + }, |
| + { |
| + "address": "aws_iam_role.host", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role" |
| + }, |
| + { |
| + "address": "aws_iam_instance_profile.host", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.name", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_instance_profile" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_metrics", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_security_group.host", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_security_group" |
| + }, |
| + { |
| + "address": "aws_eip.host", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_eip" |
| + } |
| + ], |
| + "variables": { |
| + "mode": { |
| + "default": "fixed" |
| + } |
| + } |
| + }, |
| + "source": "git::https://example.com/platform.git//infra/modules/region-host?ref=bb8973d1" |
| + }, |
| + "host_ie_group": { |
| + "expressions": { |
| + "alerts_email": { |
| + "constant_value": "alerts@example.com" |
| + }, |
| + "box_count": { |
| + "constant_value": 2 |
| + }, |
| + "iam_name": { |
| + "constant_value": "carlos-dev-ie-group" |
| + }, |
| + "mode": { |
| + "constant_value": "group" |
| + }, |
| + "name": { |
| + "constant_value": "carlos-dev-ie-group" |
| + } |
| + }, |
| + "module": { |
| + "module_calls": { |
| + "group_ingress": { |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled", |
| + "var.group_ingress" |
| + ] |
| + }, |
| + "expressions": { |
| + "name": { |
| + "references": [ |
| + "var.name" |
| + ] |
| + } |
| + }, |
| + "module": { |
| + "resources": [] |
| + }, |
| + "source": "./ingress" |
| + } |
| + }, |
| + "resources": [ |
| + { |
| + "address": "aws_iam_role.host", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role" |
| + }, |
| + { |
| + "address": "aws_iam_instance_profile.host", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.name", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_instance_profile" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy_attachment.host_ssm", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_ssm", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy_attachment" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.group", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_buckets", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_buckets", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_metrics", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_ssm_parameter_scope", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_ssm_parameter_scope", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_release_key_deny", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_release_key_deny", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_terminations", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_sqs_queue.terminations", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_sqs_queue" |
| + }, |
| + { |
| + "address": "aws_sqs_queue_policy.terminations", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_sqs_queue_policy" |
| + }, |
| + { |
| + "address": "aws_cloudwatch_event_rule.terminations", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_cloudwatch_event_rule" |
| + }, |
| + { |
| + "address": "aws_cloudwatch_event_target.terminations", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_cloudwatch_event_target" |
| + }, |
| + { |
| + "address": "aws_ssm_parameter.group_queue", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group_queue", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_ssm_parameter" |
| + }, |
| + { |
| + "address": "aws_ssm_parameter.group_ingress", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group_ingress", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_ssm_parameter" |
| + }, |
| + { |
| + "address": "aws_sns_topic.alerts", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "alerts", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_sns_topic" |
| + }, |
| + { |
| + "address": "aws_sns_topic_subscription.alerts_email", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "alerts_email", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_sns_topic_subscription" |
| + }, |
| + { |
| + "address": "aws_security_group.group", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_security_group" |
| + }, |
| + { |
| + "address": "aws_launch_template.group", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_launch_template" |
| + }, |
| + { |
| + "address": "aws_autoscaling_group.group", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_autoscaling_group" |
| + }, |
| + { |
| + "address": "aws_cloudwatch_metric_alarm.group_capacity", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group_capacity", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_cloudwatch_metric_alarm" |
| + }, |
| + { |
| + "address": "aws_cloudwatch_event_rule.group_launch_failed", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group_launch_failed", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_cloudwatch_event_rule" |
| + } |
| + ], |
| + "variables": { |
| + "mode": { |
| + "default": "fixed" |
| + } |
| + } |
| + }, |
| + "source": "git::https://example.com/platform.git//infra/modules/region-host?ref=2914921c" |
| + } |
| + } |
| + } |
| + }, |
| + "errored": false, |
| + "format_version": "1.2", |
| + "planned_values": { |
| + "root_module": { |
| + "child_modules": [ |
| + { |
| + "address": "module.host_ie", |
| + "resources": [ |
| + { |
| + "address": "module.host_ie.aws_instance.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_instance", |
| + "values": { |
| + "iam_instance_profile": "carlos-dev-ie", |
| + "id": "i-0fixed1", |
| + "instance_type": "t4g.small", |
| + "primary_network_interface_id": "eni-0fixed1", |
| + "region": "eu-west-1", |
| + "vpc_security_group_ids": [ |
| + "sg-0fixed1" |
| + ] |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:role/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "unique_id": "AROAEXAMPLEFIXED0001" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_instance_profile.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_instance_profile", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:instance-profile/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "role": "carlos-dev-ie" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role_policy.host_metrics", |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie:carlos-dev-ie-metrics", |
| + "name": "carlos-dev-ie-metrics", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_security_group.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_security_group", |
| + "values": { |
| + "id": "sg-0fixed1", |
| + "name": "carlos-dev-ie", |
| + "region": "eu-west-1", |
| + "vpc_id": "vpc-0123456789abcdef0" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_eip.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_eip", |
| + "values": { |
| + "allocation_id": "eipalloc-0fixed1", |
| + "id": "eipalloc-0fixed1", |
| + "instance": "i-0fixed1", |
| + "public_ip": "192.0.2.1", |
| + "region": "eu-west-1" |
| + } |
| + } |
| + ] |
| + } |
| + ] |
| + } |
| + }, |
| + "prior_state": { |
| + "format_version": "1.0", |
| + "terraform_version": "1.12.5", |
| + "values": { |
| + "root_module": { |
| + "child_modules": [ |
| + { |
| + "address": "module.host_ie", |
| + "resources": [ |
| + { |
| + "address": "module.host_ie.aws_instance.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_instance", |
| + "values": { |
| + "iam_instance_profile": "carlos-dev-ie", |
| + "id": "i-0fixed1", |
| + "instance_type": "t4g.small", |
| + "primary_network_interface_id": "eni-0fixed1", |
| + "region": "eu-west-1", |
| + "vpc_security_group_ids": [ |
| + "sg-0fixed1" |
| + ] |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:role/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "unique_id": "AROAEXAMPLEFIXED0001" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_instance_profile.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_instance_profile", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:instance-profile/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "role": "carlos-dev-ie" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role_policy.host_metrics", |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie:carlos-dev-ie-metrics", |
| + "name": "carlos-dev-ie-metrics", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_security_group.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_security_group", |
| + "values": { |
| + "id": "sg-0fixed1", |
| + "name": "carlos-dev-ie", |
| + "region": "eu-west-1", |
| + "vpc_id": "vpc-0123456789abcdef0" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_eip.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_eip", |
| + "values": { |
| + "allocation_id": "eipalloc-0fixed1", |
| + "id": "eipalloc-0fixed1", |
| + "instance": "i-0fixed1", |
| + "public_ip": "192.0.2.1", |
| + "region": "eu-west-1" |
| + } |
| + } |
| + ] |
| + } |
| + ] |
| + } |
| + } |
| + }, |
| + "resource_changes": [ |
| + { |
| + "address": "module.host_ie.aws_instance.host[0]", |
| + "change": { |
| + "actions": [ |
| + "no-op" |
| + ], |
| + "after": { |
| + "iam_instance_profile": "carlos-dev-ie", |
| + "id": "i-0fixed1", |
| + "instance_type": "t4g.small", |
| + "primary_network_interface_id": "eni-0fixed1", |
| + "region": "eu-west-1", |
| + "vpc_security_group_ids": [ |
| + "sg-0fixed1" |
| + ] |
| + }, |
| + "after_identity": { |
| + "account_id": "111122223333", |
| + "id": "i-0fixed1", |
| + "region": "eu-west-1" |
| + }, |
| + "after_sensitive": { |
| + "vpc_security_group_ids": [] |
| + }, |
| + "after_unknown": {}, |
| + "before": { |
| + "iam_instance_profile": "carlos-dev-ie", |
| + "id": "i-0fixed1", |
| + "instance_type": "t4g.small", |
| + "primary_network_interface_id": "eni-0fixed1", |
| + "region": "eu-west-1", |
| + "vpc_security_group_ids": [ |
| + "sg-0fixed1" |
| + ] |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "id": "i-0fixed1", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": { |
| + "vpc_security_group_ids": [] |
| + } |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_instance" |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role.host", |
| + "change": { |
| + "actions": [ |
| + "no-op" |
| + ], |
| + "after": { |
| + "arn": "arn:aws:iam::111122223333:role/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "unique_id": "AROAEXAMPLEFIXED0001" |
| + }, |
| + "after_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie" |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:iam::111122223333:role/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "unique_id": "AROAEXAMPLEFIXED0001" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role" |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_instance_profile.host", |
| + "change": { |
| + "actions": [ |
| + "no-op" |
| + ], |
| + "after": { |
| + "arn": "arn:aws:iam::111122223333:instance-profile/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "role": "carlos-dev-ie" |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:iam::111122223333:instance-profile/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "role": "carlos-dev-ie" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_instance_profile" |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role_policy.host_metrics", |
| + "change": { |
| + "actions": [ |
| + "no-op" |
| + ], |
| + "after": { |
| + "id": "carlos-dev-ie:carlos-dev-ie-metrics", |
| + "name": "carlos-dev-ie-metrics", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie" |
| + }, |
| + "after_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-metrics", |
| + "role": "carlos-dev-ie" |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie:carlos-dev-ie-metrics", |
| + "name": "carlos-dev-ie-metrics", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-metrics", |
| + "role": "carlos-dev-ie" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie", |
| + "name": "host_metrics", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie.aws_security_group.host[0]", |
| + "change": { |
| + "actions": [ |
| + "no-op" |
| + ], |
| + "after": { |
| + "id": "sg-0fixed1", |
| + "name": "carlos-dev-ie", |
| + "region": "eu-west-1", |
| + "vpc_id": "vpc-0123456789abcdef0" |
| + }, |
| + "after_identity": { |
| + "account_id": "111122223333", |
| + "id": "sg-0fixed1", |
| + "region": "eu-west-1" |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "sg-0fixed1", |
| + "name": "carlos-dev-ie", |
| + "region": "eu-west-1", |
| + "vpc_id": "vpc-0123456789abcdef0" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "id": "sg-0fixed1", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_security_group" |
| + }, |
| + { |
| + "address": "module.host_ie.aws_eip.host[0]", |
| + "change": { |
| + "actions": [ |
| + "no-op" |
| + ], |
| + "after": { |
| + "allocation_id": "eipalloc-0fixed1", |
| + "id": "eipalloc-0fixed1", |
| + "instance": "i-0fixed1", |
| + "public_ip": "192.0.2.1", |
| + "region": "eu-west-1" |
| + }, |
| + "after_identity": { |
| + "account_id": "111122223333", |
| + "id": "eipalloc-0fixed1", |
| + "region": "eu-west-1" |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": {}, |
| + "before": { |
| + "allocation_id": "eipalloc-0fixed1", |
| + "id": "eipalloc-0fixed1", |
| + "instance": "i-0fixed1", |
| + "public_ip": "192.0.2.1", |
| + "region": "eu-west-1" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "id": "eipalloc-0fixed1", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_eip" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role.host", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "assume_role_policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Principal\": {\"Service\": \"ec2.amazonaws.com\"}, \"Action\": \"sts:AssumeRole\"}]}", |
| + "description": "", |
| + "force_detach_policies": false, |
| + "max_session_duration": 3600, |
| + "name": "carlos-dev-ie-group", |
| + "name_prefix": "", |
| + "path": "/", |
| + "permissions_boundary": "", |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "name": null |
| + }, |
| + "after_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "after_unknown": { |
| + "arn": true, |
| + "id": true, |
| + "unique_id": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_instance_profile.host", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "name": "carlos-dev-ie-group", |
| + "name_prefix": "", |
| + "path": "/", |
| + "role": "carlos-dev-ie-group", |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "after_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "after_unknown": { |
| + "arn": true, |
| + "create_date": true, |
| + "id": true, |
| + "unique_id": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_instance_profile" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy_attachment.host_ssm", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "policy_arn": "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore" |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "policy_arn": null, |
| + "role": null |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": { |
| + "id": true, |
| + "role": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_ssm", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy_attachment" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.group[0]", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "name": "carlos-dev-ie-group-group", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"s3:GetObject\", \"Resource\": \"arn:aws:s3:::carlos-dev-platform/bootstrap/dev/ie/*\"}]}" |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "name": null, |
| + "role": null |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": { |
| + "id": true, |
| + "role": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_buckets", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "name": "carlos-dev-ie-group-buckets", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}" |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "name": null, |
| + "role": null |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": { |
| + "id": true, |
| + "role": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_buckets", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_metrics", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "name": "carlos-dev-ie-group-metrics", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}" |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "name": null, |
| + "role": null |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": { |
| + "id": true, |
| + "role": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_metrics", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_ssm_parameter_scope[0]", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "name": "carlos-dev-ie-group-ssm-parameter-scope", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}" |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "name": null, |
| + "role": null |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": { |
| + "id": true, |
| + "role": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_ssm_parameter_scope", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_release_key_deny[0]", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "name": "carlos-dev-ie-group-release-key-deny", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}" |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "name": null, |
| + "role": null |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": { |
| + "id": true, |
| + "role": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_release_key_deny", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_terminations", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "name": "carlos-dev-ie-group-terminations", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}" |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "name": null, |
| + "role": null |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": { |
| + "id": true, |
| + "role": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sqs_queue.terminations", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "message_retention_seconds": 86400, |
| + "name": "carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1", |
| + "sqs_managed_sse_enabled": true, |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "region": null, |
| + "url": null |
| + }, |
| + "after_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "after_unknown": { |
| + "arn": true, |
| + "id": true, |
| + "url": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_sqs_queue" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sqs_queue_policy.terminations", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "region": "eu-west-1" |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "queue_url": null, |
| + "region": null |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": { |
| + "id": true, |
| + "policy": true, |
| + "queue_url": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_sqs_queue_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_event_rule.terminations", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "event_bus_name": "default", |
| + "event_pattern": "{\"source\": [\"aws.ec2\"], \"detail-type\": [\"EC2 Instance State-change Notification\"]}", |
| + "name": "carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1", |
| + "state": "ENABLED", |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "event_bus_name": null, |
| + "name": null, |
| + "region": null |
| + }, |
| + "after_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "after_unknown": { |
| + "arn": true, |
| + "id": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_cloudwatch_event_rule" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_event_target.terminations", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "event_bus_name": "default", |
| + "region": "eu-west-1", |
| + "rule": "carlos-dev-ie-group-terminations", |
| + "target_id": "queue" |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "event_bus_name": null, |
| + "region": null, |
| + "rule": null, |
| + "target_id": null |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": { |
| + "arn": true, |
| + "id": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_cloudwatch_event_target" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_ssm_parameter.group_queue[0]", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "name": "/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "type": "String", |
| + "version": 1 |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "name": null, |
| + "region": null |
| + }, |
| + "after_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "after_unknown": { |
| + "arn": true, |
| + "id": true, |
| + "value": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group_queue", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_ssm_parameter" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_ssm_parameter.group_ingress[0]", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "name": "/carlos/dev/ie/boot/ingress", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "type": "String", |
| + "version": 1 |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "name": null, |
| + "region": null |
| + }, |
| + "after_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "after_unknown": { |
| + "arn": true, |
| + "id": true, |
| + "value": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group_ingress", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_ssm_parameter" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sns_topic.alerts[0]", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "name": "carlos-dev-ie-group-alerts", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "after_identity": { |
| + "arn": null |
| + }, |
| + "after_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "after_unknown": { |
| + "arn": true, |
| + "id": true, |
| + "owner": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "alerts", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_sns_topic" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sns_topic_subscription.alerts_email[0]", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "endpoint": "alerts@example.com", |
| + "pending_confirmation": true, |
| + "protocol": "email", |
| + "region": "eu-west-1" |
| + }, |
| + "after_identity": { |
| + "arn": null |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": { |
| + "arn": true, |
| + "id": true, |
| + "topic_arn": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "alerts_email", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_sns_topic_subscription" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_security_group.group[0]", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "description": "carlos dev IE group", |
| + "egress": [], |
| + "ingress": [ |
| + { |
| + "cidr_blocks": [], |
| + "description": "", |
| + "from_port": 80, |
| + "ipv6_cidr_blocks": [], |
| + "prefix_list_ids": [], |
| + "protocol": "tcp", |
| + "security_groups": [ |
| + "sg-0nlb1" |
| + ], |
| + "self": false, |
| + "to_port": 80 |
| + } |
| + ], |
| + "name": "carlos-dev-ie-group", |
| + "region": "eu-west-1", |
| + "revoke_rules_on_delete": false, |
| + "tags": {}, |
| + "tags_all": {}, |
| + "timeouts": null, |
| + "vpc_id": "vpc-0123456789abcdef0" |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "id": null, |
| + "region": null |
| + }, |
| + "after_sensitive": { |
| + "egress": [], |
| + "ingress": [], |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "after_unknown": { |
| + "arn": true, |
| + "id": true, |
| + "owner_id": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_security_group" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_launch_template.group[0]", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "iam_instance_profile": [ |
| + { |
| + "arn": "", |
| + "name": "carlos-dev-ie-group" |
| + } |
| + ], |
| + "image_id": "ami-0123456789abcdef0", |
| + "instance_type": "t4g.micro", |
| + "name": "carlos-dev-ie-group", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "user_data": "H4sIAAAAAAAA/0rOzytJzSvRS87PBQQAAP//", |
| + "vpc_security_group_ids": [ |
| + "sg-0group1" |
| + ] |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "id": null, |
| + "region": null |
| + }, |
| + "after_sensitive": { |
| + "iam_instance_profile": [], |
| + "tags": {}, |
| + "tags_all": {}, |
| + "vpc_security_group_ids": [] |
| + }, |
| + "after_unknown": { |
| + "arn": true, |
| + "id": true, |
| + "latest_version": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_launch_template" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_autoscaling_group.group[0]", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "desired_capacity": 2, |
| + "launch_template": [ |
| + { |
| + "id": "lt-0group1", |
| + "name": "carlos-dev-ie-group", |
| + "version": "1" |
| + } |
| + ], |
| + "max_size": 2, |
| + "min_size": 2, |
| + "name": "carlos-dev-ie-group", |
| + "region": "eu-west-1", |
| + "target_group_arns": [ |
| + "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/carlos-dev-ie-nlb-80/1234" |
| + ], |
| + "vpc_zone_identifier": [ |
| + "subnet-00000000000000001" |
| + ] |
| + }, |
| + "after_sensitive": { |
| + "launch_template": [], |
| + "target_group_arns": [], |
| + "vpc_zone_identifier": [] |
| + }, |
| + "after_unknown": { |
| + "arn": true, |
| + "id": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_autoscaling_group" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_metric_alarm.group_capacity[0]", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "alarm_actions": [ |
| + "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts" |
| + ], |
| + "alarm_name": "carlos-dev-ie-group-capacity", |
| + "dimensions": { |
| + "AutoScalingGroupName": "carlos-dev-ie-group" |
| + }, |
| + "region": "eu-west-1" |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "alarm_name": null, |
| + "region": null |
| + }, |
| + "after_sensitive": { |
| + "alarm_actions": [], |
| + "dimensions": {} |
| + }, |
| + "after_unknown": { |
| + "arn": true, |
| + "id": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group_capacity", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_cloudwatch_metric_alarm" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_event_rule.group_launch_failed[0]", |
| + "change": { |
| + "actions": [ |
| + "create" |
| + ], |
| + "after": { |
| + "event_bus_name": "default", |
| + "name": "carlos-dev-ie-group-launch-failed", |
| + "region": "eu-west-1", |
| + "state": "ENABLED" |
| + }, |
| + "after_identity": { |
| + "account_id": null, |
| + "event_bus_name": null, |
| + "name": null, |
| + "region": null |
| + }, |
| + "after_sensitive": {}, |
| + "after_unknown": { |
| + "arn": true, |
| + "id": true |
| + }, |
| + "before": null, |
| + "before_sensitive": false |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group_launch_failed", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_cloudwatch_event_rule" |
| + } |
| + ], |
| + "terraform_version": "1.12.5", |
| + "timestamp": "2026-11-04T18:39:07Z" |
| +} |
diff --git a/scripts/testdata/region-group-plan/tofu-1.12-group-full-destroy.json b/scripts/testdata/region-group-plan/tofu-1.12-group-full-destroy.json| new file mode 100644 |
| index 000000000..7a0cfd7e5 |
| --- /dev/null |
| +++ b/scripts/testdata/region-group-plan/tofu-1.12-group-full-destroy.json |
| @@ -0,0 +1,1942 @@ |
| +{ |
| + "configuration": { |
| + "provider_config": { |
| + "aws": { |
| + "expressions": { |
| + "profile": { |
| + "constant_value": "example" |
| + }, |
| + "region": { |
| + "constant_value": "eu-west-1" |
| + } |
| + }, |
| + "full_name": "registry.opentofu.org/hashicorp/aws", |
| + "name": "aws" |
| + } |
| + }, |
| + "root_module": { |
| + "module_calls": { |
| + "host_ie": { |
| + "expressions": { |
| + "iam_name": { |
| + "constant_value": "carlos-dev-ie" |
| + }, |
| + "instance_type": { |
| + "constant_value": "t4g.small" |
| + }, |
| + "name": { |
| + "constant_value": "carlos-dev-ie" |
| + } |
| + }, |
| + "module": { |
| + "resources": [ |
| + { |
| + "address": "aws_instance.host", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_instance" |
| + }, |
| + { |
| + "address": "aws_iam_role.host", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role" |
| + }, |
| + { |
| + "address": "aws_iam_instance_profile.host", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.name", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_instance_profile" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_metrics", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_security_group.host", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_security_group" |
| + }, |
| + { |
| + "address": "aws_eip.host", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_eip" |
| + } |
| + ], |
| + "variables": { |
| + "mode": { |
| + "default": "fixed" |
| + } |
| + } |
| + }, |
| + "source": "git::https://example.com/platform.git//infra/modules/region-host?ref=bb8973d1" |
| + }, |
| + "host_ie_group": { |
| + "expressions": { |
| + "alerts_email": { |
| + "constant_value": "alerts@example.com" |
| + }, |
| + "box_count": { |
| + "constant_value": 2 |
| + }, |
| + "iam_name": { |
| + "constant_value": "carlos-dev-ie-group" |
| + }, |
| + "mode": { |
| + "constant_value": "group" |
| + }, |
| + "name": { |
| + "constant_value": "carlos-dev-ie-group" |
| + } |
| + }, |
| + "module": { |
| + "module_calls": { |
| + "group_ingress": { |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled", |
| + "var.group_ingress" |
| + ] |
| + }, |
| + "expressions": { |
| + "name": { |
| + "references": [ |
| + "var.name" |
| + ] |
| + } |
| + }, |
| + "module": { |
| + "resources": [] |
| + }, |
| + "source": "./ingress" |
| + } |
| + }, |
| + "resources": [ |
| + { |
| + "address": "aws_iam_role.host", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role" |
| + }, |
| + { |
| + "address": "aws_iam_instance_profile.host", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.name", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_instance_profile" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy_attachment.host_ssm", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_ssm", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy_attachment" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.group", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_buckets", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_buckets", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_metrics", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_ssm_parameter_scope", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_ssm_parameter_scope", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_release_key_deny", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_release_key_deny", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_terminations", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_sqs_queue.terminations", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_sqs_queue" |
| + }, |
| + { |
| + "address": "aws_sqs_queue_policy.terminations", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_sqs_queue_policy" |
| + }, |
| + { |
| + "address": "aws_cloudwatch_event_rule.terminations", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_cloudwatch_event_rule" |
| + }, |
| + { |
| + "address": "aws_cloudwatch_event_target.terminations", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_cloudwatch_event_target" |
| + }, |
| + { |
| + "address": "aws_ssm_parameter.group_queue", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group_queue", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_ssm_parameter" |
| + }, |
| + { |
| + "address": "aws_ssm_parameter.group_ingress", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group_ingress", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_ssm_parameter" |
| + }, |
| + { |
| + "address": "aws_sns_topic.alerts", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "alerts", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_sns_topic" |
| + }, |
| + { |
| + "address": "aws_sns_topic_subscription.alerts_email", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "alerts_email", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_sns_topic_subscription" |
| + }, |
| + { |
| + "address": "aws_security_group.group", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_security_group" |
| + }, |
| + { |
| + "address": "aws_launch_template.group", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_launch_template" |
| + }, |
| + { |
| + "address": "aws_autoscaling_group.group", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_autoscaling_group" |
| + }, |
| + { |
| + "address": "aws_cloudwatch_metric_alarm.group_capacity", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group_capacity", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_cloudwatch_metric_alarm" |
| + }, |
| + { |
| + "address": "aws_cloudwatch_event_rule.group_launch_failed", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group_launch_failed", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_cloudwatch_event_rule" |
| + } |
| + ], |
| + "variables": { |
| + "mode": { |
| + "default": "fixed" |
| + } |
| + } |
| + }, |
| + "source": "git::https://example.com/platform.git//infra/modules/region-host?ref=2914921c" |
| + } |
| + } |
| + } |
| + }, |
| + "errored": false, |
| + "format_version": "1.2", |
| + "planned_values": { |
| + "root_module": { |
| + "child_modules": [ |
| + { |
| + "address": "module.host_ie", |
| + "resources": [ |
| + { |
| + "address": "module.host_ie.aws_instance.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_instance", |
| + "values": { |
| + "iam_instance_profile": "carlos-dev-ie", |
| + "id": "i-0fixed1", |
| + "instance_type": "t4g.small", |
| + "primary_network_interface_id": "eni-0fixed1", |
| + "region": "eu-west-1", |
| + "vpc_security_group_ids": [ |
| + "sg-0fixed1" |
| + ] |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:role/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "unique_id": "AROAEXAMPLEFIXED0001" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_instance_profile.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_instance_profile", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:instance-profile/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "role": "carlos-dev-ie" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role_policy.host_metrics", |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie:carlos-dev-ie-metrics", |
| + "name": "carlos-dev-ie-metrics", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_security_group.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_security_group", |
| + "values": { |
| + "id": "sg-0fixed1", |
| + "name": "carlos-dev-ie", |
| + "region": "eu-west-1", |
| + "vpc_id": "vpc-0123456789abcdef0" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_eip.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_eip", |
| + "values": { |
| + "allocation_id": "eipalloc-0fixed1", |
| + "id": "eipalloc-0fixed1", |
| + "instance": "i-0fixed1", |
| + "public_ip": "192.0.2.1", |
| + "region": "eu-west-1" |
| + } |
| + } |
| + ] |
| + } |
| + ] |
| + } |
| + }, |
| + "prior_state": { |
| + "format_version": "1.0", |
| + "terraform_version": "1.12.5", |
| + "values": { |
| + "root_module": { |
| + "child_modules": [ |
| + { |
| + "address": "module.host_ie", |
| + "resources": [ |
| + { |
| + "address": "module.host_ie.aws_instance.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_instance", |
| + "values": { |
| + "iam_instance_profile": "carlos-dev-ie", |
| + "id": "i-0fixed1", |
| + "instance_type": "t4g.small", |
| + "primary_network_interface_id": "eni-0fixed1", |
| + "region": "eu-west-1", |
| + "vpc_security_group_ids": [ |
| + "sg-0fixed1" |
| + ] |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:role/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "unique_id": "AROAEXAMPLEFIXED0001" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_instance_profile.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_instance_profile", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:instance-profile/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "role": "carlos-dev-ie" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role_policy.host_metrics", |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie:carlos-dev-ie-metrics", |
| + "name": "carlos-dev-ie-metrics", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_security_group.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_security_group", |
| + "values": { |
| + "id": "sg-0fixed1", |
| + "name": "carlos-dev-ie", |
| + "region": "eu-west-1", |
| + "vpc_id": "vpc-0123456789abcdef0" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_eip.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_eip", |
| + "values": { |
| + "allocation_id": "eipalloc-0fixed1", |
| + "id": "eipalloc-0fixed1", |
| + "instance": "i-0fixed1", |
| + "public_ip": "192.0.2.1", |
| + "region": "eu-west-1" |
| + } |
| + } |
| + ] |
| + }, |
| + { |
| + "address": "module.host_ie_group", |
| + "resources": [ |
| + { |
| + "address": "module.host_ie_group.aws_iam_role.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:role/carlos-dev-ie-group", |
| + "assume_role_policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Principal\": {\"Service\": \"ec2.amazonaws.com\"}, \"Action\": \"sts:AssumeRole\"}]}", |
| + "description": "", |
| + "force_detach_policies": false, |
| + "id": "carlos-dev-ie-group", |
| + "max_session_duration": 3600, |
| + "name": "carlos-dev-ie-group", |
| + "name_prefix": "", |
| + "path": "/", |
| + "permissions_boundary": "", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "unique_id": "AROAEXAMPLEGROUP0001" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_instance_profile.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_instance_profile", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:instance-profile/carlos-dev-ie-group", |
| + "create_date": "2026-11-04T18:39:20Z", |
| + "id": "carlos-dev-ie-group", |
| + "name": "carlos-dev-ie-group", |
| + "name_prefix": "", |
| + "path": "/", |
| + "role": "carlos-dev-ie-group", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "unique_id": "AIPAEXAMPLEGROUP0001" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy_attachment.host_ssm", |
| + "mode": "managed", |
| + "name": "host_ssm", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy_attachment", |
| + "values": { |
| + "id": "carlos-dev-ie-group/arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", |
| + "policy_arn": "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.group[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-group", |
| + "name": "carlos-dev-ie-group-group", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"s3:GetObject\", \"Resource\": \"arn:aws:s3:::carlos-dev-platform/bootstrap/dev/ie/*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_buckets", |
| + "mode": "managed", |
| + "name": "host_buckets", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-buckets", |
| + "name": "carlos-dev-ie-group-buckets", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_metrics", |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-metrics", |
| + "name": "carlos-dev-ie-group-metrics", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_ssm_parameter_scope[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host_ssm_parameter_scope", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-ssm-parameter-scope", |
| + "name": "carlos-dev-ie-group-ssm-parameter-scope", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_release_key_deny[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host_release_key_deny", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-release-key-deny", |
| + "name": "carlos-dev-ie-group-release-key-deny", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_terminations", |
| + "mode": "managed", |
| + "name": "host_terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-terminations", |
| + "name": "carlos-dev-ie-group-terminations", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sqs_queue.terminations", |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_sqs_queue", |
| + "values": { |
| + "arn": "arn:aws:sqs:eu-west-1:111122223333:carlos-dev-ie-group-terminations", |
| + "id": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "message_retention_seconds": 86400, |
| + "name": "carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1", |
| + "sqs_managed_sse_enabled": true, |
| + "tags": {}, |
| + "tags_all": {}, |
| + "url": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sqs_queue_policy.terminations", |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_sqs_queue_policy", |
| + "values": { |
| + "id": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Principal\": {\"Service\": \"events.amazonaws.com\"}, \"Action\": \"sqs:SendMessage\", \"Resource\": \"arn:aws:sqs:eu-west-1:111122223333:carlos-dev-ie-group-terminations\", \"Condition\": {\"ArnEquals\": {\"aws:SourceArn\": \"arn:aws:events:eu-west-1:111122223333:rule/carlos-dev-ie-group-terminations\"}}}]}", |
| + "queue_url": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_event_rule.terminations", |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_cloudwatch_event_rule", |
| + "values": { |
| + "arn": "arn:aws:events:eu-west-1:111122223333:rule/carlos-dev-ie-group-terminations", |
| + "event_bus_name": "default", |
| + "event_pattern": "{\"source\": [\"aws.ec2\"], \"detail-type\": [\"EC2 Instance State-change Notification\"]}", |
| + "id": "carlos-dev-ie-group-terminations", |
| + "name": "carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1", |
| + "state": "ENABLED", |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_event_target.terminations", |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_cloudwatch_event_target", |
| + "values": { |
| + "arn": "arn:aws:sqs:eu-west-1:111122223333:carlos-dev-ie-group-terminations", |
| + "event_bus_name": "default", |
| + "id": "carlos-dev-ie-group-terminations-queue", |
| + "region": "eu-west-1", |
| + "rule": "carlos-dev-ie-group-terminations", |
| + "target_id": "queue" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_ssm_parameter.group_queue[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "group_queue", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_ssm_parameter", |
| + "values": { |
| + "arn": "arn:aws:ssm:eu-west-1:111122223333:parameter/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "id": "/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "name": "/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "type": "String", |
| + "value": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "version": 1 |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_ssm_parameter.group_ingress[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "group_ingress", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_ssm_parameter", |
| + "values": { |
| + "arn": "arn:aws:ssm:eu-west-1:111122223333:parameter/carlos/dev/ie/boot/ingress", |
| + "id": "/carlos/dev/ie/boot/ingress", |
| + "name": "/carlos/dev/ie/boot/ingress", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "type": "String", |
| + "value": "{\"public_ips\": {\"eu-west-1a\": \"198.51.100.10\"}}", |
| + "version": 1 |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sns_topic.alerts[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "alerts", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_sns_topic", |
| + "values": { |
| + "arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts", |
| + "id": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts", |
| + "name": "carlos-dev-ie-group-alerts", |
| + "owner": "111122223333", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sns_topic_subscription.alerts_email[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "alerts_email", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_sns_topic_subscription", |
| + "values": { |
| + "arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts:00000000-0000-0000-0000-000000000001", |
| + "endpoint": "alerts@example.com", |
| + "id": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts:00000000-0000-0000-0000-000000000001", |
| + "pending_confirmation": true, |
| + "protocol": "email", |
| + "region": "eu-west-1", |
| + "topic_arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_security_group.group[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_security_group", |
| + "values": { |
| + "arn": "arn:aws:ec2:eu-west-1:111122223333:security-group/sg-0group1", |
| + "description": "carlos dev IE group", |
| + "egress": [], |
| + "id": "sg-0group1", |
| + "ingress": [ |
| + { |
| + "cidr_blocks": [], |
| + "description": "", |
| + "from_port": 80, |
| + "ipv6_cidr_blocks": [], |
| + "prefix_list_ids": [], |
| + "protocol": "tcp", |
| + "security_groups": [ |
| + "sg-0nlb1" |
| + ], |
| + "self": false, |
| + "to_port": 80 |
| + } |
| + ], |
| + "name": "carlos-dev-ie-group", |
| + "owner_id": "111122223333", |
| + "region": "eu-west-1", |
| + "revoke_rules_on_delete": false, |
| + "tags": {}, |
| + "tags_all": {}, |
| + "timeouts": null, |
| + "vpc_id": "vpc-0123456789abcdef0" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_launch_template.group[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_launch_template", |
| + "values": { |
| + "arn": "arn:aws:ec2:eu-west-1:111122223333:launch-template/lt-0group1", |
| + "iam_instance_profile": [ |
| + { |
| + "arn": "", |
| + "name": "carlos-dev-ie-group" |
| + } |
| + ], |
| + "id": "lt-0group1", |
| + "image_id": "ami-0123456789abcdef0", |
| + "instance_type": "t4g.micro", |
| + "latest_version": 1, |
| + "name": "carlos-dev-ie-group", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "user_data": "H4sIAAAAAAAA/0rOzytJzSvRS87PBQQAAP//", |
| + "vpc_security_group_ids": [ |
| + "sg-0group1" |
| + ] |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_autoscaling_group.group[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_autoscaling_group", |
| + "values": { |
| + "arn": "arn:aws:autoscaling:eu-west-1:111122223333:autoScalingGroup:0:autoScalingGroupName/carlos-dev-ie-group", |
| + "desired_capacity": 2, |
| + "id": "carlos-dev-ie-group", |
| + "launch_template": [ |
| + { |
| + "id": "lt-0group1", |
| + "name": "carlos-dev-ie-group", |
| + "version": "1" |
| + } |
| + ], |
| + "max_size": 2, |
| + "min_size": 2, |
| + "name": "carlos-dev-ie-group", |
| + "region": "eu-west-1", |
| + "target_group_arns": [ |
| + "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/carlos-dev-ie-nlb-80/1234" |
| + ], |
| + "vpc_zone_identifier": [ |
| + "subnet-00000000000000001" |
| + ] |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_metric_alarm.group_capacity[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "group_capacity", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_cloudwatch_metric_alarm", |
| + "values": { |
| + "alarm_actions": [ |
| + "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts" |
| + ], |
| + "alarm_name": "carlos-dev-ie-group-capacity", |
| + "arn": "arn:aws:cloudwatch:eu-west-1:111122223333:alarm:carlos-dev-ie-group-capacity", |
| + "dimensions": { |
| + "AutoScalingGroupName": "carlos-dev-ie-group" |
| + }, |
| + "id": "carlos-dev-ie-group-capacity", |
| + "region": "eu-west-1" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_event_rule.group_launch_failed[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "group_launch_failed", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_cloudwatch_event_rule", |
| + "values": { |
| + "arn": "arn:aws:events:eu-west-1:111122223333:rule/carlos-dev-ie-group-launch-failed", |
| + "event_bus_name": "default", |
| + "id": "carlos-dev-ie-group-launch-failed", |
| + "name": "carlos-dev-ie-group-launch-failed", |
| + "region": "eu-west-1", |
| + "state": "ENABLED" |
| + } |
| + } |
| + ] |
| + } |
| + ] |
| + } |
| + } |
| + }, |
| + "resource_changes": [ |
| + { |
| + "address": "module.host_ie_group.aws_iam_role.host", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:iam::111122223333:role/carlos-dev-ie-group", |
| + "assume_role_policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Principal\": {\"Service\": \"ec2.amazonaws.com\"}, \"Action\": \"sts:AssumeRole\"}]}", |
| + "description": "", |
| + "force_detach_policies": false, |
| + "id": "carlos-dev-ie-group", |
| + "max_session_duration": 3600, |
| + "name": "carlos-dev-ie-group", |
| + "name_prefix": "", |
| + "path": "/", |
| + "permissions_boundary": "", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "unique_id": "AROAEXAMPLEGROUP0001" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_instance_profile.host", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:iam::111122223333:instance-profile/carlos-dev-ie-group", |
| + "create_date": "2026-11-04T18:39:20Z", |
| + "id": "carlos-dev-ie-group", |
| + "name": "carlos-dev-ie-group", |
| + "name_prefix": "", |
| + "path": "/", |
| + "role": "carlos-dev-ie-group", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "unique_id": "AIPAEXAMPLEGROUP0001" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_instance_profile" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy_attachment.host_ssm", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group/arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", |
| + "policy_arn": "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "policy_arn": "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_ssm", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy_attachment" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.group[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-group", |
| + "name": "carlos-dev-ie-group-group", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"s3:GetObject\", \"Resource\": \"arn:aws:s3:::carlos-dev-platform/bootstrap/dev/ie/*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group-group", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_buckets", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-buckets", |
| + "name": "carlos-dev-ie-group-buckets", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group-buckets", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_buckets", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_metrics", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-metrics", |
| + "name": "carlos-dev-ie-group-metrics", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group-metrics", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_metrics", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_ssm_parameter_scope[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-ssm-parameter-scope", |
| + "name": "carlos-dev-ie-group-ssm-parameter-scope", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group-ssm-parameter-scope", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_ssm_parameter_scope", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_release_key_deny[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-release-key-deny", |
| + "name": "carlos-dev-ie-group-release-key-deny", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group-release-key-deny", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_release_key_deny", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_terminations", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-terminations", |
| + "name": "carlos-dev-ie-group-terminations", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group-terminations", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sqs_queue.terminations", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:sqs:eu-west-1:111122223333:carlos-dev-ie-group-terminations", |
| + "id": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "message_retention_seconds": 86400, |
| + "name": "carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1", |
| + "sqs_managed_sse_enabled": true, |
| + "tags": {}, |
| + "tags_all": {}, |
| + "url": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "region": "eu-west-1", |
| + "url": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_sqs_queue" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sqs_queue_policy.terminations", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Principal\": {\"Service\": \"events.amazonaws.com\"}, \"Action\": \"sqs:SendMessage\", \"Resource\": \"arn:aws:sqs:eu-west-1:111122223333:carlos-dev-ie-group-terminations\", \"Condition\": {\"ArnEquals\": {\"aws:SourceArn\": \"arn:aws:events:eu-west-1:111122223333:rule/carlos-dev-ie-group-terminations\"}}}]}", |
| + "queue_url": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "queue_url": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_sqs_queue_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_event_rule.terminations", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:events:eu-west-1:111122223333:rule/carlos-dev-ie-group-terminations", |
| + "event_bus_name": "default", |
| + "event_pattern": "{\"source\": [\"aws.ec2\"], \"detail-type\": [\"EC2 Instance State-change Notification\"]}", |
| + "id": "carlos-dev-ie-group-terminations", |
| + "name": "carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1", |
| + "state": "ENABLED", |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "event_bus_name": "default", |
| + "name": "carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_cloudwatch_event_rule" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_event_target.terminations", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:sqs:eu-west-1:111122223333:carlos-dev-ie-group-terminations", |
| + "event_bus_name": "default", |
| + "id": "carlos-dev-ie-group-terminations-queue", |
| + "region": "eu-west-1", |
| + "rule": "carlos-dev-ie-group-terminations", |
| + "target_id": "queue" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "event_bus_name": "default", |
| + "region": "eu-west-1", |
| + "rule": "carlos-dev-ie-group-terminations", |
| + "target_id": "queue" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_cloudwatch_event_target" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_ssm_parameter.group_queue[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:ssm:eu-west-1:111122223333:parameter/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "id": "/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "name": "/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "type": "String", |
| + "value": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "version": 1 |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group_queue", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_ssm_parameter" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_ssm_parameter.group_ingress[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:ssm:eu-west-1:111122223333:parameter/carlos/dev/ie/boot/ingress", |
| + "id": "/carlos/dev/ie/boot/ingress", |
| + "name": "/carlos/dev/ie/boot/ingress", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "type": "String", |
| + "value": "{\"public_ips\": {\"eu-west-1a\": \"198.51.100.10\"}}", |
| + "version": 1 |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "/carlos/dev/ie/boot/ingress", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group_ingress", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_ssm_parameter" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sns_topic.alerts[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts", |
| + "id": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts", |
| + "name": "carlos-dev-ie-group-alerts", |
| + "owner": "111122223333", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "before_identity": { |
| + "arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "alerts", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_sns_topic" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sns_topic_subscription.alerts_email[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts:00000000-0000-0000-0000-000000000001", |
| + "endpoint": "alerts@example.com", |
| + "id": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts:00000000-0000-0000-0000-000000000001", |
| + "pending_confirmation": true, |
| + "protocol": "email", |
| + "region": "eu-west-1", |
| + "topic_arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts" |
| + }, |
| + "before_identity": { |
| + "arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts:00000000-0000-0000-0000-000000000001" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "alerts_email", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_sns_topic_subscription" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_security_group.group[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:ec2:eu-west-1:111122223333:security-group/sg-0group1", |
| + "description": "carlos dev IE group", |
| + "egress": [], |
| + "id": "sg-0group1", |
| + "ingress": [ |
| + { |
| + "cidr_blocks": [], |
| + "description": "", |
| + "from_port": 80, |
| + "ipv6_cidr_blocks": [], |
| + "prefix_list_ids": [], |
| + "protocol": "tcp", |
| + "security_groups": [ |
| + "sg-0nlb1" |
| + ], |
| + "self": false, |
| + "to_port": 80 |
| + } |
| + ], |
| + "name": "carlos-dev-ie-group", |
| + "owner_id": "111122223333", |
| + "region": "eu-west-1", |
| + "revoke_rules_on_delete": false, |
| + "tags": {}, |
| + "tags_all": {}, |
| + "timeouts": null, |
| + "vpc_id": "vpc-0123456789abcdef0" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "id": "sg-0group1", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": { |
| + "egress": [], |
| + "ingress": [], |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_security_group" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_launch_template.group[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:ec2:eu-west-1:111122223333:launch-template/lt-0group1", |
| + "iam_instance_profile": [ |
| + { |
| + "arn": "", |
| + "name": "carlos-dev-ie-group" |
| + } |
| + ], |
| + "id": "lt-0group1", |
| + "image_id": "ami-0123456789abcdef0", |
| + "instance_type": "t4g.micro", |
| + "latest_version": 1, |
| + "name": "carlos-dev-ie-group", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "user_data": "H4sIAAAAAAAA/0rOzytJzSvRS87PBQQAAP//", |
| + "vpc_security_group_ids": [ |
| + "sg-0group1" |
| + ] |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "id": "lt-0group1", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": { |
| + "iam_instance_profile": [], |
| + "tags": {}, |
| + "tags_all": {}, |
| + "vpc_security_group_ids": [] |
| + } |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_launch_template" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_autoscaling_group.group[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:autoscaling:eu-west-1:111122223333:autoScalingGroup:0:autoScalingGroupName/carlos-dev-ie-group", |
| + "desired_capacity": 2, |
| + "id": "carlos-dev-ie-group", |
| + "launch_template": [ |
| + { |
| + "id": "lt-0group1", |
| + "name": "carlos-dev-ie-group", |
| + "version": "1" |
| + } |
| + ], |
| + "max_size": 2, |
| + "min_size": 2, |
| + "name": "carlos-dev-ie-group", |
| + "region": "eu-west-1", |
| + "target_group_arns": [ |
| + "arn:aws:elasticloadbalancing:eu-west-1:111122223333:targetgroup/carlos-dev-ie-nlb-80/1234" |
| + ], |
| + "vpc_zone_identifier": [ |
| + "subnet-00000000000000001" |
| + ] |
| + }, |
| + "before_sensitive": { |
| + "launch_template": [], |
| + "target_group_arns": [], |
| + "vpc_zone_identifier": [] |
| + } |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_autoscaling_group" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_metric_alarm.group_capacity[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "alarm_actions": [ |
| + "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts" |
| + ], |
| + "alarm_name": "carlos-dev-ie-group-capacity", |
| + "arn": "arn:aws:cloudwatch:eu-west-1:111122223333:alarm:carlos-dev-ie-group-capacity", |
| + "dimensions": { |
| + "AutoScalingGroupName": "carlos-dev-ie-group" |
| + }, |
| + "id": "carlos-dev-ie-group-capacity", |
| + "region": "eu-west-1" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "alarm_name": "carlos-dev-ie-group-capacity", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": { |
| + "alarm_actions": [], |
| + "dimensions": {} |
| + } |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group_capacity", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_cloudwatch_metric_alarm" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_event_rule.group_launch_failed[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:events:eu-west-1:111122223333:rule/carlos-dev-ie-group-launch-failed", |
| + "event_bus_name": "default", |
| + "id": "carlos-dev-ie-group-launch-failed", |
| + "name": "carlos-dev-ie-group-launch-failed", |
| + "region": "eu-west-1", |
| + "state": "ENABLED" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "event_bus_name": "default", |
| + "name": "carlos-dev-ie-group-launch-failed", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group_launch_failed", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_cloudwatch_event_rule" |
| + } |
| + ], |
| + "terraform_version": "1.12.5", |
| + "timestamp": "2026-11-04T18:41:20Z" |
| +} |
diff --git a/scripts/testdata/region-group-plan/tofu-1.12-group-partial-destroy.json b/scripts/testdata/region-group-plan/tofu-1.12-group-partial-destroy.json| new file mode 100644 |
| index 000000000..f9558d5a0 |
| --- /dev/null |
| +++ b/scripts/testdata/region-group-plan/tofu-1.12-group-partial-destroy.json |
| @@ -0,0 +1,1676 @@ |
| +{ |
| + "configuration": { |
| + "provider_config": { |
| + "aws": { |
| + "expressions": { |
| + "profile": { |
| + "constant_value": "example" |
| + }, |
| + "region": { |
| + "constant_value": "eu-west-1" |
| + } |
| + }, |
| + "full_name": "registry.opentofu.org/hashicorp/aws", |
| + "name": "aws" |
| + } |
| + }, |
| + "root_module": { |
| + "module_calls": { |
| + "host_ie": { |
| + "expressions": { |
| + "iam_name": { |
| + "constant_value": "carlos-dev-ie" |
| + }, |
| + "instance_type": { |
| + "constant_value": "t4g.small" |
| + }, |
| + "name": { |
| + "constant_value": "carlos-dev-ie" |
| + } |
| + }, |
| + "module": { |
| + "resources": [ |
| + { |
| + "address": "aws_instance.host", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_instance" |
| + }, |
| + { |
| + "address": "aws_iam_role.host", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role" |
| + }, |
| + { |
| + "address": "aws_iam_instance_profile.host", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.name", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_instance_profile" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_metrics", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_security_group.host", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_security_group" |
| + }, |
| + { |
| + "address": "aws_eip.host", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_eip" |
| + } |
| + ], |
| + "variables": { |
| + "mode": { |
| + "default": "fixed" |
| + } |
| + } |
| + }, |
| + "source": "git::https://example.com/platform.git//infra/modules/region-host?ref=bb8973d1" |
| + }, |
| + "host_ie_group": { |
| + "expressions": { |
| + "alerts_email": { |
| + "constant_value": "alerts@example.com" |
| + }, |
| + "box_count": { |
| + "constant_value": 2 |
| + }, |
| + "iam_name": { |
| + "constant_value": "carlos-dev-ie-group" |
| + }, |
| + "mode": { |
| + "constant_value": "group" |
| + }, |
| + "name": { |
| + "constant_value": "carlos-dev-ie-group" |
| + } |
| + }, |
| + "module": { |
| + "module_calls": { |
| + "group_ingress": { |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled", |
| + "var.group_ingress" |
| + ] |
| + }, |
| + "expressions": { |
| + "name": { |
| + "references": [ |
| + "var.name" |
| + ] |
| + } |
| + }, |
| + "module": { |
| + "resources": [] |
| + }, |
| + "source": "./ingress" |
| + } |
| + }, |
| + "resources": [ |
| + { |
| + "address": "aws_iam_role.host", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role" |
| + }, |
| + { |
| + "address": "aws_iam_instance_profile.host", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.name", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_instance_profile" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy_attachment.host_ssm", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_ssm", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy_attachment" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.group", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_buckets", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_buckets", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_metrics", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_ssm_parameter_scope", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_ssm_parameter_scope", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_release_key_deny", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_release_key_deny", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_iam_role_policy.host_terminations", |
| + "expressions": { |
| + "role": { |
| + "references": [ |
| + "aws_iam_role.host.id", |
| + "aws_iam_role.host" |
| + ] |
| + } |
| + }, |
| + "mode": "managed", |
| + "name": "host_terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "aws_sqs_queue.terminations", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_sqs_queue" |
| + }, |
| + { |
| + "address": "aws_sqs_queue_policy.terminations", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_sqs_queue_policy" |
| + }, |
| + { |
| + "address": "aws_cloudwatch_event_rule.terminations", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_cloudwatch_event_rule" |
| + }, |
| + { |
| + "address": "aws_cloudwatch_event_target.terminations", |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_cloudwatch_event_target" |
| + }, |
| + { |
| + "address": "aws_ssm_parameter.group_queue", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group_queue", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_ssm_parameter" |
| + }, |
| + { |
| + "address": "aws_ssm_parameter.group_ingress", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group_ingress", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_ssm_parameter" |
| + }, |
| + { |
| + "address": "aws_sns_topic.alerts", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "alerts", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_sns_topic" |
| + }, |
| + { |
| + "address": "aws_sns_topic_subscription.alerts_email", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "alerts_email", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_sns_topic_subscription" |
| + }, |
| + { |
| + "address": "aws_security_group.group", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_security_group" |
| + }, |
| + { |
| + "address": "aws_launch_template.group", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_launch_template" |
| + }, |
| + { |
| + "address": "aws_autoscaling_group.group", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_autoscaling_group" |
| + }, |
| + { |
| + "address": "aws_cloudwatch_metric_alarm.group_capacity", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group_capacity", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_cloudwatch_metric_alarm" |
| + }, |
| + { |
| + "address": "aws_cloudwatch_event_rule.group_launch_failed", |
| + "count_expression": { |
| + "references": [ |
| + "local.group_enabled" |
| + ] |
| + }, |
| + "expressions": {}, |
| + "mode": "managed", |
| + "name": "group_launch_failed", |
| + "provider_config_key": "aws", |
| + "schema_version": 0, |
| + "type": "aws_cloudwatch_event_rule" |
| + } |
| + ], |
| + "variables": { |
| + "mode": { |
| + "default": "fixed" |
| + } |
| + } |
| + }, |
| + "source": "git::https://example.com/platform.git//infra/modules/region-host?ref=2914921c" |
| + } |
| + } |
| + } |
| + }, |
| + "errored": false, |
| + "format_version": "1.2", |
| + "planned_values": { |
| + "root_module": { |
| + "child_modules": [ |
| + { |
| + "address": "module.host_ie", |
| + "resources": [ |
| + { |
| + "address": "module.host_ie.aws_instance.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_instance", |
| + "values": { |
| + "iam_instance_profile": "carlos-dev-ie", |
| + "id": "i-0fixed1", |
| + "instance_type": "t4g.small", |
| + "primary_network_interface_id": "eni-0fixed1", |
| + "region": "eu-west-1", |
| + "vpc_security_group_ids": [ |
| + "sg-0fixed1" |
| + ] |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:role/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "unique_id": "AROAEXAMPLEFIXED0001" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_instance_profile.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_instance_profile", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:instance-profile/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "role": "carlos-dev-ie" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role_policy.host_metrics", |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie:carlos-dev-ie-metrics", |
| + "name": "carlos-dev-ie-metrics", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_security_group.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_security_group", |
| + "values": { |
| + "id": "sg-0fixed1", |
| + "name": "carlos-dev-ie", |
| + "region": "eu-west-1", |
| + "vpc_id": "vpc-0123456789abcdef0" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_eip.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_eip", |
| + "values": { |
| + "allocation_id": "eipalloc-0fixed1", |
| + "id": "eipalloc-0fixed1", |
| + "instance": "i-0fixed1", |
| + "public_ip": "192.0.2.1", |
| + "region": "eu-west-1" |
| + } |
| + } |
| + ] |
| + } |
| + ] |
| + } |
| + }, |
| + "prior_state": { |
| + "format_version": "1.0", |
| + "terraform_version": "1.12.5", |
| + "values": { |
| + "root_module": { |
| + "child_modules": [ |
| + { |
| + "address": "module.host_ie", |
| + "resources": [ |
| + { |
| + "address": "module.host_ie.aws_instance.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_instance", |
| + "values": { |
| + "iam_instance_profile": "carlos-dev-ie", |
| + "id": "i-0fixed1", |
| + "instance_type": "t4g.small", |
| + "primary_network_interface_id": "eni-0fixed1", |
| + "region": "eu-west-1", |
| + "vpc_security_group_ids": [ |
| + "sg-0fixed1" |
| + ] |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:role/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "unique_id": "AROAEXAMPLEFIXED0001" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_instance_profile.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_instance_profile", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:instance-profile/carlos-dev-ie", |
| + "id": "carlos-dev-ie", |
| + "name": "carlos-dev-ie", |
| + "role": "carlos-dev-ie" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_iam_role_policy.host_metrics", |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie:carlos-dev-ie-metrics", |
| + "name": "carlos-dev-ie-metrics", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_security_group.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_security_group", |
| + "values": { |
| + "id": "sg-0fixed1", |
| + "name": "carlos-dev-ie", |
| + "region": "eu-west-1", |
| + "vpc_id": "vpc-0123456789abcdef0" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie.aws_eip.host[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_eip", |
| + "values": { |
| + "allocation_id": "eipalloc-0fixed1", |
| + "id": "eipalloc-0fixed1", |
| + "instance": "i-0fixed1", |
| + "public_ip": "192.0.2.1", |
| + "region": "eu-west-1" |
| + } |
| + } |
| + ] |
| + }, |
| + { |
| + "address": "module.host_ie_group", |
| + "resources": [ |
| + { |
| + "address": "module.host_ie_group.aws_iam_role.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:role/carlos-dev-ie-group", |
| + "assume_role_policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Principal\": {\"Service\": \"ec2.amazonaws.com\"}, \"Action\": \"sts:AssumeRole\"}]}", |
| + "description": "", |
| + "force_detach_policies": false, |
| + "id": "carlos-dev-ie-group", |
| + "max_session_duration": 3600, |
| + "name": "carlos-dev-ie-group", |
| + "name_prefix": "", |
| + "path": "/", |
| + "permissions_boundary": "", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "unique_id": "AROAEXAMPLEGROUP0001" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_instance_profile.host", |
| + "mode": "managed", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_instance_profile", |
| + "values": { |
| + "arn": "arn:aws:iam::111122223333:instance-profile/carlos-dev-ie-group", |
| + "create_date": "2026-11-04T18:39:20Z", |
| + "id": "carlos-dev-ie-group", |
| + "name": "carlos-dev-ie-group", |
| + "name_prefix": "", |
| + "path": "/", |
| + "role": "carlos-dev-ie-group", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "unique_id": "AIPAEXAMPLEGROUP0001" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy_attachment.host_ssm", |
| + "mode": "managed", |
| + "name": "host_ssm", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy_attachment", |
| + "values": { |
| + "id": "carlos-dev-ie-group/arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", |
| + "policy_arn": "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.group[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-group", |
| + "name": "carlos-dev-ie-group-group", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"s3:GetObject\", \"Resource\": \"arn:aws:s3:::carlos-dev-platform/bootstrap/dev/ie/*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_buckets", |
| + "mode": "managed", |
| + "name": "host_buckets", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-buckets", |
| + "name": "carlos-dev-ie-group-buckets", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_metrics", |
| + "mode": "managed", |
| + "name": "host_metrics", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-metrics", |
| + "name": "carlos-dev-ie-group-metrics", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_ssm_parameter_scope[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host_ssm_parameter_scope", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-ssm-parameter-scope", |
| + "name": "carlos-dev-ie-group-ssm-parameter-scope", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_release_key_deny[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "host_release_key_deny", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-release-key-deny", |
| + "name": "carlos-dev-ie-group-release-key-deny", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_terminations", |
| + "mode": "managed", |
| + "name": "host_terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_iam_role_policy", |
| + "values": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-terminations", |
| + "name": "carlos-dev-ie-group-terminations", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sqs_queue.terminations", |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_sqs_queue", |
| + "values": { |
| + "arn": "arn:aws:sqs:eu-west-1:111122223333:carlos-dev-ie-group-terminations", |
| + "id": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "message_retention_seconds": 86400, |
| + "name": "carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1", |
| + "sqs_managed_sse_enabled": true, |
| + "tags": {}, |
| + "tags_all": {}, |
| + "url": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sqs_queue_policy.terminations", |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_sqs_queue_policy", |
| + "values": { |
| + "id": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Principal\": {\"Service\": \"events.amazonaws.com\"}, \"Action\": \"sqs:SendMessage\", \"Resource\": \"arn:aws:sqs:eu-west-1:111122223333:carlos-dev-ie-group-terminations\", \"Condition\": {\"ArnEquals\": {\"aws:SourceArn\": \"arn:aws:events:eu-west-1:111122223333:rule/carlos-dev-ie-group-terminations\"}}}]}", |
| + "queue_url": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_event_rule.terminations", |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_cloudwatch_event_rule", |
| + "values": { |
| + "arn": "arn:aws:events:eu-west-1:111122223333:rule/carlos-dev-ie-group-terminations", |
| + "event_bus_name": "default", |
| + "event_pattern": "{\"source\": [\"aws.ec2\"], \"detail-type\": [\"EC2 Instance State-change Notification\"]}", |
| + "id": "carlos-dev-ie-group-terminations", |
| + "name": "carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1", |
| + "state": "ENABLED", |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_event_target.terminations", |
| + "mode": "managed", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_cloudwatch_event_target", |
| + "values": { |
| + "arn": "arn:aws:sqs:eu-west-1:111122223333:carlos-dev-ie-group-terminations", |
| + "event_bus_name": "default", |
| + "id": "carlos-dev-ie-group-terminations-queue", |
| + "region": "eu-west-1", |
| + "rule": "carlos-dev-ie-group-terminations", |
| + "target_id": "queue" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_ssm_parameter.group_queue[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "group_queue", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_ssm_parameter", |
| + "values": { |
| + "arn": "arn:aws:ssm:eu-west-1:111122223333:parameter/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "id": "/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "name": "/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "type": "String", |
| + "value": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "version": 1 |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_ssm_parameter.group_ingress[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "group_ingress", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_ssm_parameter", |
| + "values": { |
| + "arn": "arn:aws:ssm:eu-west-1:111122223333:parameter/carlos/dev/ie/boot/ingress", |
| + "id": "/carlos/dev/ie/boot/ingress", |
| + "name": "/carlos/dev/ie/boot/ingress", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "type": "String", |
| + "value": "{\"public_ips\": {\"eu-west-1a\": \"198.51.100.10\"}}", |
| + "version": 1 |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sns_topic.alerts[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "alerts", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_sns_topic", |
| + "values": { |
| + "arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts", |
| + "id": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts", |
| + "name": "carlos-dev-ie-group-alerts", |
| + "owner": "111122223333", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sns_topic_subscription.alerts_email[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "alerts_email", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_sns_topic_subscription", |
| + "values": { |
| + "arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts:00000000-0000-0000-0000-000000000001", |
| + "endpoint": "alerts@example.com", |
| + "id": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts:00000000-0000-0000-0000-000000000001", |
| + "pending_confirmation": true, |
| + "protocol": "email", |
| + "region": "eu-west-1", |
| + "topic_arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts" |
| + } |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_security_group.group[0]", |
| + "index": 0, |
| + "mode": "managed", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "schema_version": 0, |
| + "sensitive_values": {}, |
| + "type": "aws_security_group", |
| + "values": { |
| + "arn": "arn:aws:ec2:eu-west-1:111122223333:security-group/sg-0group1", |
| + "description": "carlos dev IE group", |
| + "egress": [], |
| + "id": "sg-0group1", |
| + "ingress": [ |
| + { |
| + "cidr_blocks": [], |
| + "description": "", |
| + "from_port": 80, |
| + "ipv6_cidr_blocks": [], |
| + "prefix_list_ids": [], |
| + "protocol": "tcp", |
| + "security_groups": [ |
| + "sg-0nlb1" |
| + ], |
| + "self": false, |
| + "to_port": 80 |
| + } |
| + ], |
| + "name": "carlos-dev-ie-group", |
| + "owner_id": "111122223333", |
| + "region": "eu-west-1", |
| + "revoke_rules_on_delete": false, |
| + "tags": {}, |
| + "tags_all": {}, |
| + "timeouts": null, |
| + "vpc_id": "vpc-0123456789abcdef0" |
| + } |
| + } |
| + ] |
| + } |
| + ] |
| + } |
| + } |
| + }, |
| + "resource_changes": [ |
| + { |
| + "address": "module.host_ie_group.aws_iam_role.host", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:iam::111122223333:role/carlos-dev-ie-group", |
| + "assume_role_policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Principal\": {\"Service\": \"ec2.amazonaws.com\"}, \"Action\": \"sts:AssumeRole\"}]}", |
| + "description": "", |
| + "force_detach_policies": false, |
| + "id": "carlos-dev-ie-group", |
| + "max_session_duration": 3600, |
| + "name": "carlos-dev-ie-group", |
| + "name_prefix": "", |
| + "path": "/", |
| + "permissions_boundary": "", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "unique_id": "AROAEXAMPLEGROUP0001" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_instance_profile.host", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:iam::111122223333:instance-profile/carlos-dev-ie-group", |
| + "create_date": "2026-11-04T18:39:20Z", |
| + "id": "carlos-dev-ie-group", |
| + "name": "carlos-dev-ie-group", |
| + "name_prefix": "", |
| + "path": "/", |
| + "role": "carlos-dev-ie-group", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "unique_id": "AIPAEXAMPLEGROUP0001" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_instance_profile" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy_attachment.host_ssm", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group/arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", |
| + "policy_arn": "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "policy_arn": "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_ssm", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy_attachment" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.group[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-group", |
| + "name": "carlos-dev-ie-group-group", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"s3:GetObject\", \"Resource\": \"arn:aws:s3:::carlos-dev-platform/bootstrap/dev/ie/*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group-group", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_buckets", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-buckets", |
| + "name": "carlos-dev-ie-group-buckets", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group-buckets", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_buckets", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_metrics", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-metrics", |
| + "name": "carlos-dev-ie-group-metrics", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group-metrics", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_metrics", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_ssm_parameter_scope[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-ssm-parameter-scope", |
| + "name": "carlos-dev-ie-group-ssm-parameter-scope", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group-ssm-parameter-scope", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_ssm_parameter_scope", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_release_key_deny[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-release-key-deny", |
| + "name": "carlos-dev-ie-group-release-key-deny", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group-release-key-deny", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_release_key_deny", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_iam_role_policy.host_terminations", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "carlos-dev-ie-group:carlos-dev-ie-group-terminations", |
| + "name": "carlos-dev-ie-group-terminations", |
| + "name_prefix": "", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Action\": \"cloudwatch:PutMetricData\", \"Resource\": \"*\"}]}", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "carlos-dev-ie-group-terminations", |
| + "role": "carlos-dev-ie-group" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "host_terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_iam_role_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sqs_queue.terminations", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:sqs:eu-west-1:111122223333:carlos-dev-ie-group-terminations", |
| + "id": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "message_retention_seconds": 86400, |
| + "name": "carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1", |
| + "sqs_managed_sse_enabled": true, |
| + "tags": {}, |
| + "tags_all": {}, |
| + "url": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "region": "eu-west-1", |
| + "url": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_sqs_queue" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sqs_queue_policy.terminations", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "id": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "policy": "{\"Version\": \"2012-10-17\", \"Statement\": [{\"Effect\": \"Allow\", \"Principal\": {\"Service\": \"events.amazonaws.com\"}, \"Action\": \"sqs:SendMessage\", \"Resource\": \"arn:aws:sqs:eu-west-1:111122223333:carlos-dev-ie-group-terminations\", \"Condition\": {\"ArnEquals\": {\"aws:SourceArn\": \"arn:aws:events:eu-west-1:111122223333:rule/carlos-dev-ie-group-terminations\"}}}]}", |
| + "queue_url": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "queue_url": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_sqs_queue_policy" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_event_rule.terminations", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:events:eu-west-1:111122223333:rule/carlos-dev-ie-group-terminations", |
| + "event_bus_name": "default", |
| + "event_pattern": "{\"source\": [\"aws.ec2\"], \"detail-type\": [\"EC2 Instance State-change Notification\"]}", |
| + "id": "carlos-dev-ie-group-terminations", |
| + "name": "carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1", |
| + "state": "ENABLED", |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "event_bus_name": "default", |
| + "name": "carlos-dev-ie-group-terminations", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_cloudwatch_event_rule" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_cloudwatch_event_target.terminations", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:sqs:eu-west-1:111122223333:carlos-dev-ie-group-terminations", |
| + "event_bus_name": "default", |
| + "id": "carlos-dev-ie-group-terminations-queue", |
| + "region": "eu-west-1", |
| + "rule": "carlos-dev-ie-group-terminations", |
| + "target_id": "queue" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "event_bus_name": "default", |
| + "region": "eu-west-1", |
| + "rule": "carlos-dev-ie-group-terminations", |
| + "target_id": "queue" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "terminations", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_cloudwatch_event_target" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_ssm_parameter.group_queue[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:ssm:eu-west-1:111122223333:parameter/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "id": "/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "name": "/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "type": "String", |
| + "value": "https://sqs.eu-west-1.amazonaws.com/111122223333/carlos-dev-ie-group-terminations", |
| + "version": 1 |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "/carlos/dev/ie/boot/CARLOS_TERMINATION_QUEUE_URL", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group_queue", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_ssm_parameter" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_ssm_parameter.group_ingress[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:ssm:eu-west-1:111122223333:parameter/carlos/dev/ie/boot/ingress", |
| + "id": "/carlos/dev/ie/boot/ingress", |
| + "name": "/carlos/dev/ie/boot/ingress", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {}, |
| + "type": "String", |
| + "value": "{\"public_ips\": {\"eu-west-1a\": \"198.51.100.10\"}}", |
| + "version": 1 |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "name": "/carlos/dev/ie/boot/ingress", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group_ingress", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_ssm_parameter" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sns_topic.alerts[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts", |
| + "id": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts", |
| + "name": "carlos-dev-ie-group-alerts", |
| + "owner": "111122223333", |
| + "region": "eu-west-1", |
| + "tags": {}, |
| + "tags_all": {} |
| + }, |
| + "before_identity": { |
| + "arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts" |
| + }, |
| + "before_sensitive": { |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "alerts", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_sns_topic" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_sns_topic_subscription.alerts_email[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts:00000000-0000-0000-0000-000000000001", |
| + "endpoint": "alerts@example.com", |
| + "id": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts:00000000-0000-0000-0000-000000000001", |
| + "pending_confirmation": true, |
| + "protocol": "email", |
| + "region": "eu-west-1", |
| + "topic_arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts" |
| + }, |
| + "before_identity": { |
| + "arn": "arn:aws:sns:eu-west-1:111122223333:carlos-dev-ie-group-alerts:00000000-0000-0000-0000-000000000001" |
| + }, |
| + "before_sensitive": {} |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "alerts_email", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_sns_topic_subscription" |
| + }, |
| + { |
| + "address": "module.host_ie_group.aws_security_group.group[0]", |
| + "change": { |
| + "actions": [ |
| + "delete" |
| + ], |
| + "after": null, |
| + "after_sensitive": false, |
| + "after_unknown": {}, |
| + "before": { |
| + "arn": "arn:aws:ec2:eu-west-1:111122223333:security-group/sg-0group1", |
| + "description": "carlos dev IE group", |
| + "egress": [], |
| + "id": "sg-0group1", |
| + "ingress": [ |
| + { |
| + "cidr_blocks": [], |
| + "description": "", |
| + "from_port": 80, |
| + "ipv6_cidr_blocks": [], |
| + "prefix_list_ids": [], |
| + "protocol": "tcp", |
| + "security_groups": [ |
| + "sg-0nlb1" |
| + ], |
| + "self": false, |
| + "to_port": 80 |
| + } |
| + ], |
| + "name": "carlos-dev-ie-group", |
| + "owner_id": "111122223333", |
| + "region": "eu-west-1", |
| + "revoke_rules_on_delete": false, |
| + "tags": {}, |
| + "tags_all": {}, |
| + "timeouts": null, |
| + "vpc_id": "vpc-0123456789abcdef0" |
| + }, |
| + "before_identity": { |
| + "account_id": "111122223333", |
| + "id": "sg-0group1", |
| + "region": "eu-west-1" |
| + }, |
| + "before_sensitive": { |
| + "egress": [], |
| + "ingress": [], |
| + "tags": {}, |
| + "tags_all": {} |
| + } |
| + }, |
| + "index": 0, |
| + "mode": "managed", |
| + "module_address": "module.host_ie_group", |
| + "name": "group", |
| + "provider_name": "registry.opentofu.org/hashicorp/aws", |
| + "type": "aws_security_group" |
| + } |
| + ], |
| + "terraform_version": "1.12.5", |
| + "timestamp": "2026-11-04T18:41:20Z" |
| +} |