# gcp\_compute\_disk shows service account not implemented

**URL:** <https://forum.ansible.com/t/gcp-compute-disk-shows-service-account-not-implemented/32899>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [May 11, 2020, 4:16am UTC](https://forum.ansible.com/t/gcp-compute-disk-shows-service-account-not-implemented/32899 "2020-05-11T04:16:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nik\_chakraborty](https://avatars.discourse-cdn.com/v4/letter/n/bc79bd/32.png) [@nik\_chakraborty](https://forum.ansible.com/u/nik_chakraborty)\
**Post date:** [May 11, 2020, 4:16am UTC](https://forum.ansible.com/t/gcp-compute-disk-shows-service-account-not-implemented/32899/1 "2020-05-11T04:16:32Z")

</div>

```auto
ansible --version
ansible 2.7.12
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]

```

```auto
python --version
Python 3.6.9

```

```auto
- name: create a disk
  gcp_compute_disk:
    name: test_object
    size_gb: 50
    disk_encryption_key:
      kms_key_name: 
    zone: us-central1-a
    project: test_project
    auth_kind: serviceaccount
    scopes: 
        - https://www.googleapis.com/auth/compute
    state: present
 delegate_to: localhost

```

##### SUMMARY

fatal localhost unsupported parameter for (gcp\_compute\_disk) module kmsKeyName found in disk\_encryption\_key suuported parameter raw\_key,sha 256

if i do comment disk\_envryption\_part then it says credential type none not implemented  
or  
credential type serviceaccount not implemented

##### ISSUE TYPE- Bug Report

##### COMPONENT NAME

gcp\_compute\_disk

##### ANSIBLE VERSION

```auto
ansible --version
ansible 2.7.12
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.6/dist-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.6.9 (default, Apr 18 2020, 01:56:04) [GCC 8.4.0]

```

##### CONFIGURATION

```auto
- name: create a disk
  gcp_compute_disk:
    name: test_object
    size_gb: 50
    disk_encryption_key:
      kms_key_name: 
    zone: us-central1-a
    project: test_project
    auth_kind: serviceaccount
    scopes: 
        - https://www.googleapis.com/auth/compute
    state: present
 delegate_to: localhost

```

##### OS / ENVIRONMENT

ubuntu 18.04

```auto
- name: create a disk
  gcp_compute_disk:
    name: test_object
    size_gb: 50
    disk_encryption_key:
      kms_key_name: 
    zone: us-central1-a
    project: test_project
    auth_kind: serviceaccount
    scopes: 
        - https://www.googleapis.com/auth/compute
    state: present
 delegate_to: localhost

```

##### EXPECTED RESULTS

it should be successful with disk creation part

##### ACTUAL RESULTS

It gives following error

fatal localhost unsupported parameter for (gcp\_compute\_disk) module kms\_key\_name found in disk\_encryption\_key suuported parameter raw\_key,sha 256

if i do comment disk\_envryption\_part then it says credential type none not implemented

or

credential type serviceaccount not implemented
