# AWS Organisation Policies - No available Data resource

**URL:** <https://discuss.hashicorp.com/t/aws-organisation-policies-no-available-data-resource/45700>\
**Category:** AWS\
**Created:** [October 17, 2022, 11:17am UTC](https://discuss.hashicorp.com/t/aws-organisation-policies-no-available-data-resource/45700 "2022-10-17T11:17:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan.gerry](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/ryan.gerry/32/25337_2.png) [@ryan.gerry](https://discuss.hashicorp.com/u/ryan.gerry)\
**Post date:** [October 17, 2022, 11:17am UTC](https://discuss.hashicorp.com/t/aws-organisation-policies-no-available-data-resource/45700/1 "2022-10-17T11:17:27Z")

</div>

Hi,

We have a multi-state Terraform configuration for an AWS Organisation. In one state, we create organisation policies and in another state we want to attach those policies to accounts/OUs.

I’m having an issue working out how we can lookup the organisation policy to be used as an attachment, as there doesn’t seem to be a data resoruce. The AWS organization data block allows you to see the policy types that are enabled but doesn’t seem to list the actual policies.

How can I get the Policy ID using the AWS Provider, when module output is unavailable?

---

<div class="post-metadata">

**Author:** ![stuart-c](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/stuart-c/32/10789_2.png) [@stuart-c](https://discuss.hashicorp.com/u/stuart-c)\
**Post date:** [October 17, 2022, 12:57pm UTC](https://discuss.hashicorp.com/t/aws-organisation-policies-no-available-data-resource/45700/2 "2022-10-17T12:57:32Z")

</div>

You could use the remote state data source to pass things between state files?

---

<div class="post-metadata">

**Author:** ![ryan.gerry](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/ryan.gerry/32/25337_2.png) [@ryan.gerry](https://discuss.hashicorp.com/u/ryan.gerry)\
**Post date:** [October 17, 2022, 1:44pm UTC](https://discuss.hashicorp.com/t/aws-organisation-policies-no-available-data-resource/45700/3 "2022-10-17T13:44:11Z")

</div>

Yes this could work was just wondering if I’d missed some sort of available resource that would allow me to read these details. Seems strange it isn’t available.

Want to avoid the remote state to keep the code base more readable but if that’s the only option then I’ll do that.

Also have considered a local-exec to use api to look it up or just extending the provider
