needs:
- warnings (including delay) turned off by user-data
- warnings (including delay) turned off by system config
- non-strict ec2
- report only
cat /etc/cloud/cloud.cfg.d/ds.cfg
#cloud-config
datasource:
Ec2:
strict_id: false
strict_id: warn[,0] # warn, and sleep time.
strict_id: true
# datasource/Ec2/strict_id value is read to determine what to do.
# order of precedence is:
# 1. cloud-init/ds-identify builtin
# 2. ds-identify config
# 3. kernel command line (undocumented)
# 4. system config (/etc/cloud/cloud.cfg.d/99Ec2.cfg)
# 5. user-data or vendor-data
#
# ds-identify:
# * can only read inputs 1-5 (not able to read from user-data/vendor-data)
# thus user-data and vendor-data cannot change 'false' to 'true'
# * if value is warn or false, then the Ec2 search will return MAYBE
# instead of NOT_FOUND.
#
# cloud-init:
# * 'activate' of the ec2 datasource can consult all above. If the
# final value is 'false', or 'warn', and the datasource is used.
# then a warning will be issued and optionally a sleep done.
#
# zesty: ds-identify builtin set to 'true'
# yakkety: ds-identify config set to 'warn[,0]'
# ubuntu-core: ds-identify config set to true
#
#
# Warning message:
# *********************************************************************
# This system is using the EC2 Metadata Service, but does not appear to
# be running on Amazon EC2. In the future, cloud-init may stop reading
# metadata from the EC2 Metadata Service unless the platform can be
# identified.
#
# If you are seeing this message, please file a bug against cloud-init
# at https://bugs.launchpad.net/cloud-init/+filebug . Make sure to
# include the cloud provider your instance is running on.
#
# For more information see
# https://bugs.launchpad.net/cloud-init/+bug/1660385
#
# After you have filed a bug, you can disable this warning by launching
# your instance with the cloud-config below, or putting that content
# into /etc/cloud/cloud.cfg.d/99-ec2-datasource.cfg
#
# #cloud-config
# datasource:
# Ec2:
# strict_id: false
#
************************************************************************