static_resources:
  listeners:
  - address:
      socket_address:
        address: 0.0.0.0
        port_value: 80
    filter_chains:
    - filters:
      - name: envoy.filters.network.http_connection_manager
        typed_config:
          "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
          codec_type: AUTO
          stat_prefix: ingress_http
          route_config:
            name: local_route
            virtual_hosts:
            - name: app
              domains:
              - "*"
              routes:
              - match:
                  prefix: "/"
                route:
                  cluster: versioned-cluster
          http_filters:
          - name: envoy.filters.http.aws_request_signing
            typed_config:
              "@type": type.googleapis.com/envoy.extensions.filters.http.aws_request_signing.v3.AwsRequestSigning
              credential_provider:
                iam_roles_anywhere_credential_provider:
                  role_arn: arn:aws:iam::012345678901:role/rolesanywhere
                  certificate: {filename: /certificates/certificate.pem}
                  private_key: {filename: /certificates/private-key.pem}
                  trust_anchor_arn: arn:aws:rolesanywhere:ap-southeast-2:012345678901:trust-anchor/8d105284-f0a7-4939-a7e6-8df768ea535f
                  profile_arn: arn:aws:rolesanywhere:ap-southeast-2:012345678901:profile/4af0c6cf-506a-4469-b1b5-5f3fecdaabdf
                  session_duration: 900s
              service_name: s3
              region: ap-southeast-2
              use_unsigned_payload: true
              match_excluded_headers:
              - prefix: x-envoy
              - prefix: x-forwarded
              - exact: x-amzn-trace-id
          - name: envoy.filters.http.router
            typed_config:
              "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
  clusters:
  - name: versioned-cluster
    type: STRICT_DNS
    lb_policy: ROUND_ROBIN
    load_assignment:
      cluster_name: versioned-cluster
      endpoints:
      - lb_endpoints:
        - endpoint:
            address:
              socket_address:
                address: 127.0.0.1
                port_value: 8080
