phdata-logo Docs About phData
Known Issues

Cloud Foundation Known Issues #

“Could not resolve host: repoitory.phdata.io” #

Cloud Foundation builds are failing with error ‘Could not resolve host: repoitory.phdata.io’ in build log. This error is triggered due to Cloud Foundation repository migration.

Follow the below steps to resolve this issue.

  • Request phData team to provide an ENTITLEMENT TOKEN to access Cloud Foundation repository.

  • Once you receive the ENTITLEMENT TOKEN, add the token as a secret variable in the Cloud Foundation CI/CD repository.

    Parameter Name: cloudfoundation_token
    Parameter Value: Token received from phData team

  • Add the below variables in the build specification file.

    1. cfci_version: "1.2.5"
    2. repository_base_url: "https://repo.phdata.io/TOKEN/cf-gold-templates/raw/versions"
    3. cloudfoundation_token: Parameter key name name for cloudfoundation_token
  • The above instructions will slightly change depending on the build tool used in your environment. Below steps provide an example for AWS codebuild.

    1. add the cloudfoundation_token as a secret variable in the AWS parameter store.
      Parameter Name: /codeBuild/cloudfoundation_token
      Parameter Value: Token received from phData team

    2. Update the the build specification file with the below changes

      env:
      variables:
        cfci_version: "1.2.5"
        repository_base_url: "https://repo.phdata.io/TOKEN/cf-gold-templates/raw/versions"
      parameter-store:
        cloudfoundation_token: /codeBuild/cloudfoundation_token