Repository navigation
Releases
v1.0.0
The first stable release. The schema is the one 0.13.0 shipped, and from here
on COMPATIBILITY.md holds for every 1.x release: nothing it lists is
removed before 2.0.0, and anything deprecated in 1.x keeps working until then. The changes since 0.13.0 are below; they include the one
fix 1.0.0-rc.1 already carried.
1.0.0-rc.1 went through a full App Store release cycle on a production app
first, with phased release on. The one bug it found, a price diff on
apple_subscription_price_schedule that no configuration could clear, is
fixed here.
NOTES:
- Examples and guides pin
~> 1.0, andapple terraform export(CLI
1.0.0) pins>= 1.0.0, < 2.0.0. A configuration pinning~> 0.1does not
install 1.0.0: change the constraint to~> 1.0.
DOCUMENTATION:
apple_app_store_version_phased_releasegives Apple's rollout schedule:
the share of users with automatic updates each of the seven days reaches,
and the 30-day limit on pausing.
BUG FIXES:
apple_subscription_price_scheduleno longer plans to remove a price
it cannot remove. After approval, a price in a territory the
configuration does not name stays at Apple, since a live price can only be
superseded. The refresh still read it into state, so every plan showed it
being removed and every apply warned "Prices Left In Place". That included a
territory taken off the subscription's availability, which Apple keeps a
price for anyway. A refresh after approval now reads only the territories
the configuration names. Before approval, when the next write would remove
such a price, the plan still shows it.apple_app_store_versionno longer asks Apple to delete a released
version. Changingversion_stringafter a release replaces the version,
and the destroy half sent aDELETEApple refused with four reasons, which
the provider then reported as a long warning. It now reads the version's
state first and keeps a released version with a one-line warning, "Released
App Store Version Kept". A version still being prepared is deleted as
before.apple_subscription_availabilityexplains a refused territory
removal. Apple lets only the Account Holder remove a territory from a
subscription that is for sale, and answers an API key with a 409. The
error is now "Territory Removal Needs the Account Holder", saying to remove
it in App Store Connect as the Account Holder or keep it in
available_territories.apple_subscription_price_schedulecan schedule a price change before
the subscription is approved. A price with astart_dateon a
subscription not yet approved failed with HTTP 409 "An error occurred while
processing the pricing information", because the prices went out in one
request that Apple refuses whenever any of them is dated. The undated
prices still go out together. Each dated price is now sent on its own
afterwards, and a dated price removed from the configuration is deleted.
apple CLI 1.0.0
The first stable release of the CLI. From here on
COMPATIBILITY.md holds for every 1.x release: nothing it lists is
removed before 2.0.0, and anything deprecated in 1.x keeps working until then.
BREAKING CHANGES:
-
apple screenshots captureis removed. It only drovexcrun simctl
and never touched App Store Connect, the same reason the CLI does not wrap
xcodebuild.apple_app_screenshot_setstill uploads the files. The same
steps are foursimctlcalls in a script:xcrun simctl bootstatus "$UDID" -b xcrun simctl status_bar "$UDID" override --time 9:41 --batteryState charged \ --batteryLevel 100 --cellularBars 4 --wifiBars 3 xcrun simctl io "$UDID" screenshot --type=jpeg home.jpg # JPEG: no alpha channel xcrun simctl status_bar "$UDID" clear
-
apple terraform exportpins provider>= 1.0.0, < 2.0.0. Release
this CLI only after provider 1.0.0. An exported configuration no longer
installs a 0.x provider.
FEATURES:
apple release phased statusshows how far the rollout has reached.
Next to the day it prints the share of users with automatic updates that
day reaches (Day 3 of 7 (5% of users with automatic updates)) and the day
the rollout started.--jsoncarries them asuser_percentand
start_date. Apple's API reports the day and not the share, so the share
comes from Apple's fixed schedule (1, 2, 5, 10, 20, 50 and 100 percent),
whichapple release phased --helpnow prints.
v1.0.0-rc.1
The release candidate for 1.0.0, to be run through one full App Store release
cycle before the stable release. The schema is the one 1.0.0 will freeze, and
it is unchanged since 0.13.0. Terraform only installs a pre-release when the
version is named exactly: version = "1.0.0-rc.1".
BUG FIXES:
apple_subscription_price_schedulecan schedule a price change before
the subscription is approved. A price with astart_dateon a
subscription not yet approved failed with HTTP 409 "An error occurred while
processing the pricing information", because the prices went out in one
request that Apple refuses whenever any of them is dated. The undated
prices still go out together. Each dated price is now sent on its own
afterwards, and a dated price removed from the configuration is deleted.
v0.13.0
FEATURES:
- New resource:
apple_subscription_promotional_offer. A discount an app
presents to existing or lapsed subscribers, requested byoffer_code. One
offer covers every territory inprices, each with its own price point, or
none for a free offer.offer_codetakes letters, digits, underscores and
periods, which Apple enforces and the plan now checks.priceschanges in
place; every other attribute forces replacement, because Apple's update
request carries only the prices. Prices are read from the offer's own collection, so an offer sold
in every storefront is not cut off at 50. Import by the offer ID or by
<subscription_id>/<offer_code>. - New data source:
apple_subscription_promotional_offers. Lists a
subscription's promotional offers with their prices.territoriesis sent to
Apple as a filter,name_pattern,offer_codeandoffer_modeare applied
in memory, and the usuallimit,sort_byandsort_orderapply.
v0.12.0
FEATURES:
- New data source:
apple_subscription_introductory_offers. Lists a
subscription's introductory offers, one record per offer with its territory,
mode, duration, periods, price point and dates.territoriesis sent to
Apple as a filter,offer_modeis applied in memory, and the usuallimit,
sort_byandsort_orderapply, ordered by territory then start date by
default. - New resource:
apple_app_store_version_phased_release. Releases a
version over seven days to users with automatic updates. The resource's
presence is the setting; Apple's rolloutstate,start_date,
current_day_numberandtotal_pause_durationare read-only, so Apple
moving the rollout on is never a diff. Destroy turns phased release off
before the rollout starts and leaves a started one alone. Import by the
version ID.examples/app-listinggains aphased_releasevariable.
v0.11.0
FEATURES:
- New data sources:
apple_in_app_purchase_price_point_equalizationsand
apple_app_price_point_equalizations. Given one base price point, each
reads the price point Apple considers equivalent in every other territory,
asapple_subscription_price_point_equalizationsalready did for
subscriptions, with aprice_point_idsmap from territory code to price
point ID. An in-app purchase or app price schedule already equalizes its base
territory by itself, so these are for seeing what that charges, and for
pinning those prices as manual ones, which stay put when Apple adjusts
equalized prices for exchange rates or taxes.
BUG FIXES:
- A plan straight after changing
apple_app_settingsno longer shows the
change undone. Apple's reads of an app record lag its writes by a few
seconds, so a refresh right after an apply, such as a CI drift check, read
the oldcontent_rights_declarationand planned to set it again. The write
now waits briefly until Apple's reads catch up. - Importing an
apple_certificateby display name no longer adopts the
wrong certificate. Apple derives the display name from whoever the
certificate was issued to, so a team's certificates usually share one, and
import took whichever Apple listed first. A name that several certificates
carry is now refused, with their serial numbers. apple_certificateandapple_bundle_idcan be imported by Apple's ID.
Import recognised Apple's ID only by acert-orbundle-prefix or a
length over fifty characters, which no Apple ID has, so the documented ID
form failed with "not found".apple_user_invitationno longer resends an imported invitation that
allows provisioning.provisioning_alloweddefaulted tofalseand forces
replacement, so a configuration that left it out cancelled the invitation and
emailed the person a new one. Leaving it unset now keeps the answer Apple
holds; a new invitation still starts atfalse.- The three availability resources keep Apple's
available_in_new_territorieswhen it is left unset. It defaulted to
trueonapple_app_availability,apple_subscription_availabilityand
apple_in_app_purchase_availability, so an imported availability holding
falseplanned an update that posts a new record. A new availability is still
created withtrue. A test now fails on any default on a resource that can
be imported, which is how these four were found. - Device names and Merchant ID display names are limited to 64 characters,
not 64 bytes. A name with a curly apostrophe, as iPhones name themselves,
or an accented letter was refused before reaching the limit. customer_pricefinds the free app price point again. The filter on
apple_app_price_points,apple_in_app_purchase_price_pointsand
apple_subscription_price_pointscompared strings exactly, and Apple now
reports the free point as0.0, socustomer_price = "0"matched nothing
and a free app could not be priced as documented. Prices are now compared as
numbers, so0,0.0and9.90match however Apple formats them, while
9.9still never matches9.99.
apple CLI 0.6.0
FEATURES:
apple terraform exportwritesapple_subscription_promotional_offer,
one per offer with its prices, imported by the offer ID. It therefore pins
provider>= 0.13.0. Release this CLI only after provider 0.13.0.
apple CLI 0.5.0
FEATURES:
apple release phased status|pause|resume|complete VERSION. Shows a
version's phased release, or pauses, resumes or finishes it early. Asking
for the state the rollout is already in changes nothing and exits 0.apple terraform exportwritesapple_app_store_version_phased_release
for a version that has one, and so pins provider>= 0.12.0. Release this
CLI only after provider 0.12.0.
v0.10.0
BREAKING CHANGES:
apple_in_app_purchase_localization.version_idis now
in_app_purchase_version_id. It is the in-app purchase version the
localization was written into, andversion_idread as though it were an
App Store version, which every other resource callsapp_store_version_id.
The attribute is computed, so only a configuration that references it needs
changing. Existing state upgrades without an error, and the next refresh
fills in the new attribute.
BUG FIXES:
- Renaming an
apple_deviceno longer reissues the profiles that list it.
The device'sidwas planned as unknown on any update, and
apple_profile.devicesforces replacement, so every profile listing the
device planned a reissue. A test now checks that every resource'sid
keeps its state on an update, apart from the few whose ID Apple changes on
every write. apple_userno longer revokes provisioning access nobody configured.
provisioning_alloweddefaulted tofalse, and the resource adopts a
member already on the team, so a configuration that left it out turned
provisioning off for anyone who had it. Leaving it unset now keeps the
member's current answer.apple_subscriptionandapple_in_app_purchasekeep Apple's
family_sharablewhen it is left unset. It defaulted tofalse, so an
imported product that Apple shares with families planned a change Apple
refuses, since family sharing cannot be turned off once on. A new product
still starts atfalse, Apple's own default.apple_profilesapplies itsbundle_idfilter. It was accepted and
ignored, so every profile in the account came back, and each reported an
emptybundle_id. The filter now takes Apple's ID or the identifier, such as
com.example.app, and each profile reports the Bundle ID it was issued for.
Both cost one request per profile.certificatesanddevicesare still not
read, and their descriptions now say so.apple_devicesacceptsstatus = "DISABLED", the status every
destroyedapple_deviceis left in. The filter refused it, so disabled
devices could not be listed.apple_bundle_idsandapple_certificatesrefuse a singular filter
beside its plural. Their descriptions have always saidplatformand
platforms, andcertificate_typeandcertificate_types, cannot be used
together, but nothing enforced it: both were applied, so a Bundle ID or
certificate had to match each. Setting both is now an error at plan time
naming the two attributes. A value not known until apply is checked once it
is known.
ENHANCEMENTS:
- The Xcode Cloud listing data sources take
name_pattern,sort_by,
sort_orderandlimit, and reporttotal_countandfiltered_count,
like every other listing data source. Onapple_ci_xcode_versionsand
apple_ci_mac_os_versions,sort_by = "version"compares numerically, so
sort_order = "desc"withlimit = 1returns the newest version. Without
sort_by, records keep Apple's order, as before. - Fuller descriptions for
apple_ci_workflow, the Xcode Cloud data sources,
apple_devicesandapple_profiles. Every valid capability type and App
Store version state is now listed, generated from the same lists the
validators use. Thebundle_idattributes say whether they take Apple's ID
or thecom.example.appidentifier.
v0.9.0
ENHANCEMENTS:
apple_app_age_rating_declaration:shared_locationand
dating_and_relationships. Apple added both questions to the age rating
questionnaire, and App Store Connect asks every app to answer them by
January 15, 2027, or sooner when another answer in that section changes.
Like the other answers they are optional and computed, so leaving them out
keeps whatever Apple holds.apple terraform exportwrites them when
Apple has an answer.