# Google Compute Engine Dynamic Inventory

**URL:** <https://forum.ansible.com/t/google-compute-engine-dynamic-inventory/31023>\
**Category:** AWX Project\
**Tags:** gcp, awx\
**Created:** [August 12, 2019, 5:52pm UTC](https://forum.ansible.com/t/google-compute-engine-dynamic-inventory/31023 "2019-08-12T17:52:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andres\_Isern](https://avatars.discourse-cdn.com/v4/letter/a/b5e925/32.png) [@Andres\_Isern](https://forum.ansible.com/u/Andres_Isern)\
**Post date:** [August 12, 2019, 5:52pm UTC](https://forum.ansible.com/t/google-compute-engine-dynamic-inventory/31023/1 "2019-08-12T17:52:33Z")

</div>

Hi All,

I am having issues setting up the GCE Dynamic Inventory with my AWX instance.

I want to set up the dynamic Inventory so that it uses the machine’s default service account instead of a regular service account.

When I set the Dynamic Inventory source as Google Compute Engine, it just lets me select a GCE credential (GCP service account) It does not let me select the machine credentials:

 ![](https://us1.discourse-cdn.com/ansible/original/2X/d/dc0604805ca0f47056f9c9237327b991dfb0c490.png)

However, if I use ansible through CLI commands I can use the machine credentials without having to create a new service account with a private key:

ansible-inventory -i test.gcp.yml

where test.gcp.yml has:

```auto
projects:
  - some-project
auth_kind: machineaccount

```

How can I achieve the same functionality from AWX? Do I need to leverage custom scripts?

Thanks for the help.
