<p>I am following <a href="https://aws.amazon.com/blogs/containers/building-a-gitops-pipeline-with-amazon-eks/" rel="nofollow noreferrer">Building a GITOPS pipeline with EKS</a>.</p>
<p>After <code>flux create source</code> and <code>flux create kustomization</code></p>
<p>my fleet-intra repo</p>
<pre><code>tree -L 3
.
└── adorable-mushroom-1655535375
    ├── flux-system
    │   ├── gotk-components.yaml
    │   ├── gotk-sync.yaml
    │   └── kustomization.yaml
    └── guestbook-gitops.yaml
</code></pre>
<p>I have problem with kustomization</p>
<pre><code>flux get kustomizations

NAME        REVISION                                        SUSPENDED   READY   MESSAGE                                                                                                                                          
flux-system main/75d8189db82f1c2c77d22a9deb6baea06f179d0c   False       False   failed to decode Kubernetes YAML from /tmp/kustomization-985813897/adorable-mushroom-1655535375/guestbook-gitops.yaml: missing Resource metadata    
</code></pre>
<p>My guestbook-gitops.yaml  looks like this</p>
<pre><code>apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
  name: guestbook-gitops
  namespace: flux-system
spec:
  interval: 1h0m0s
  path: ./deploy
  prune: true
  sourceRef:
    kind: GitRepository
    name: guestbook-gitops
</code></pre>
<p>What is wrong with metadata?</p>

Richard Rublev
<p>In the <a href="https://github.com/weaveworks/guestbook-gitops/blob/master/deploy/kustomization.yaml" rel="nofollow noreferrer">link</a> you had shared there sample kustomization yaml.  you can prepare kustomize yaml in similar manner and check it.</p>
