is it forbidden to export twice the same resource ...
# general
n
is it forbidden to export twice the same resource with pulumi? I have this code which is working
Copy code
ecs_target_groups = [
        {'arn': target_group_4004.arn, 'port': target_group_4004.port},
        {'arn': target_group_443.arn, 'port': target_group_443.port},
    ]
    pulumi.export('ecs_target_groups', ecs_target_groups)
But this code is giving me null for the two resources already exported previously
Copy code
ecs_target_groups = [
        {'arn': target_group_4004.arn, 'port': target_group_4004.port},
        {'arn': target_group_443.arn, 'port': target_group_443.port},
    ]

    temp_ecs_target_groups = [
        {'arn': target_group_4004.arn, 'port': target_group_4004.port},
        {'arn': target_group_443.arn, 'port': target_group_443.port},
        {'arn': target_group_4000.arn, 'port': target_group_4000.port},
    ]

    pulumi.export('ecs_target_groups', ecs_target_groups)
    pulumi.export('temp_ecs_target_groups', temp_ecs_target_groups)