components:
  terraform:
    testhost:
      metadata:
        component: ec2/public
      vars:
        name: testhost
        instance_type: t2.small
        root_block_device_volume_size: 64
        user_data:
          - echo '[pgdg14]' | tee /etc/yum.repos.d/pgdg.repo
          - echo 'name=PostgreSQL 14 for RHEL/CentOS 7 - x86_64' | tee -a /etc/yum.repos.d/pgdg.repo
          - echo 'baseurl=http://download.postgresql.org/pub/repos/yum/14/redhat/rhel-7-x86_64' | tee -a /etc/yum.repos.d/pgdg.repo
          - echo 'enabled=1' | tee -a /etc/yum.repos.d/pgdg.repo
          - echo 'gpgcheck=0' | tee -a /etc/yum.repos.d/pgdg.repo
          - yum makecache
          - yum install -y postgresql14
          - amazon-linux-extras install -y epel
